how to compile in visual c++ 2005 express


kunrocket
07-31-2006, 09:41 AM
I am new in programming (very new). I am now trying to build one of the NR in visual c++ 2005 express edition for a univesity lecture. I am making a win32 console application. The compiler however gives me an external error of the following form:

MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
C:\SDP\Debug\SDP.exe : fatal error LNK1120: 1 unresolved externals

I just simply put the files *.cpp and *.h files in the program exactly as show in the NR book.

Can one someone please give me a hand with this?
Should I include other "*.h" file?

Thanks

KR

JeffA
10-09-2006, 01:50 PM
KR,

I am having the same issue. Did you ever resolve this problem? Has anyone else?

regards

Jeff