linker problems with VC++ for Win32 applications
hello everyone,
I can create a new Win32 application and compile it, but when I come back later and try to alter the .cpp file, I get two linker errors, that I have no idea on how to fix. They state
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/simplew.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Does anyone have any idea on how to remedy this problem :confused:
thank you to any repliers.
LIBCD.lib(crt0.obj) : error LNK2001
I just had this same problem and cutting and pasting into a new project worked for me too. In my case I believe it comes from going straight to the c++ source file instead of creating a workspace first.
Anyway, that is my hypothesis when I create apps. by first creating the project workspace this error doesn't occur.