Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LINK ERROR C2065

Status
Not open for further replies.

Seahaven

Programmer
Joined
Feb 10, 2001
Messages
3
Location
GB
Below is a simple C++ program I tried on to compile on my
PC ruinning NT4.0 Server Can anyone tell me why it wont compile?

Thanks


#include <iostream>
using namespace std;
void main()
{


char myname[40];

cout << &quot;Enter your name:&quot;;

cin >> myname;

cout << endl << &quot;Hellow world C++&quot; << myname << endl;

}

----Configuration: HelloWorld - Win32 Debug------------
Compiling...
Hello.cpp
g:\msdn\include\xlocinfo(26) : error C2065: 'free' : undeclared identifier
Error executing cl.exe.

HelloWorld.exe - 1 error(s), 0 warning(s)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top