Cout in an SDL application not working

Robert Clayton wrote in message
news:20000703025538.63760.qmail at hotmail.com

I downloaded the latest aliens source code, and changed the aliens.c file
to
a .cpp file.

I loaded the Visual Studio project into Visual Studio 6 and tried to
include
<iostream.h> and to use cout to no avail.

I’m not sure if this has anything to do with your problem, but <iostream.h>
is deprecated. New C++ programs should use .–
Rainer Deyke (root at rainerdeyke.com)
Shareware action/role-playing games - http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor

I downloaded the latest aliens source code, and changed the aliens.c file to
a .cpp file.

I loaded the Visual Studio project into Visual Studio 6 and tried to include
<iostream.h> and to use cout to no avail.

I get an error stating:

--------------------Configuration: aliens - Win32 Debug--------------------
Compiling…
aliens.cpp
Linking…
libcimtd.lib(iostrini.obj) : error LNK2001: unresolved external symbol "void

  • __cdecl operator new(unsigned int,int,char const *,int)"
    (??2 at YAPAXIHPBDH@Z)
    libcimtd.lib(streamb.obj) : error LNK2001: unresolved external symbol "void
  • __cdecl operator new(unsigned int,int,char const *,int)"
    (??2 at YAPAXIHPBDH@Z)
    Debug/aliens.exe : fatal error LNK1120: 1 unresolved externals
    Error executing link.exe.

I was wondering why this was so?________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com