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