Can anybody help? Recently I have got hold of a book called "Programming Windows(fifth edition) by C Petzold". I have downloaded prgorams from the companion CD of the book and tried to comiple and build them. I have got MS Visual C++ 6.0 on my Windows XP computer. I have no problem with compiling them but, when I try to build them, Visual C++ 6.0 generates the following error message:
HelloWin.c
Linking ...
LIBCD.lib(crt0.obj):error LNK2001:unresolved external symbol _main
Debug/HelloWin.exe:fatal error LNK1120:1 unresolved externals
Error executing link.exe
Do I get this error message because the system on my computer is XP? What shold I do? I did not forget to add all the library objects as instructed by the book!
I will really appreciate it if any of you guys can give me some idea or solution!!
Best regards
Chong