Interview Question in Visual Studio 2003


 

Interview Question :: Very simple C++ help

I'm using visual Studio .net 2003. It's a completely legal version so I know it wasn't tampered with.

This is my code:

@include <iostream.h>

int main()
{
cout << "Hello World!\n";
return 0;
}



This is the result:

Linking...
HelloWorld.obj : error LNK2019: unresolved external symbol "long __stdcall About(struct HWND__ *,unsigned int,unsigned int,long)" (?About@@YGJPAUHWND__@@IIJ@Z) referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z)
Debug/HelloWorld.exe : fatal error LNK1120: 1 unresolved externals


My tutorial book says to type it just like that, and I started it as a blank C++ file.. is my compiler broken or am I missing something fundamental?

Thanks

-Simba
by ksk