-
newbie question
I have been programming in vb, html, sql, vba, vbs, javascript for a couple of years but am a newbie to visual c++. I am teaching myself and am writing my first traditional "hello world" program.
I have compiled it and get no errors but when I build the .exe I get these error messages:
--------------------Configuration: Test - Win32 Debug--------------------
Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/Test.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Test.exe - 2 error(s), 0 warning(s)
my code is this...
#include <iostream.h>
int main()
{
cout << "Hello World, God loves you!\n";
return 0;
}
Does anyone know why I am getting this error?
Jose
-
Win32 application?!
Hi,
it appears to me that you have created a win32 application. These application requires a _WinMain function instead of the normal main function.
I'd recommend to use a console appication for your first programs. They will compile with the normal main function...
enjoy!
cody
-
that was it, thanks
that fixed it, thanks.
Jose