VC++6.0 报错Error : LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16解决办法...

编译程序时报错

Error : LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16

Reason :
Created Win32 Application , and having main function instead of Winmain().

If you want to make that application as Console application do the following :

In Visual Studio 6.0 :

Go to Project -> Settings -> Link tab

In the bottom

Project Options :

Find the word => /subsystem:windows
change it to =>/subsystem:console

Now recompile your application.

It will compile without error.

你可能感兴趣的:(VC++6.0 报错Error : LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16解决办法...)