Archived

This topic is now archived and is closed to further replies.

mangine

Errors compiling prog shell

Recommended Posts

mangine    130
Does anyone know... (and this could be very simple) what the error "unresolved external symbol _main" means? What do I do to fix this? I am compiling in Visual c++ 6.0.

Share this post


Link to post
Share on other sites
krez    443
it means you are compiling as a console app, but did not define a main() function. you must either change it to compile to a win32 app (if you have a WinMain() instead), or write a main() function.

Share this post


Link to post
Share on other sites
mangine    130
I suspected it might be something simple like that. So do I have to start a new project, or can I tweak something within the compiler to tell it to stop compiling for console?(And start compiling to win32 application)

Share this post


Link to post
Share on other sites
SiCrane    11839
How you would change it depends on your linker. For MSVC, there should be a linker setting /SUBSYSTEM:CONSOLE. Change that to /SUBSYSTEM:WINDOWS.

Share this post


Link to post
Share on other sites