• Advertisement

Archived

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

Errors compiling prog shell

This topic is 5141 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
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
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

  • Advertisement