Skip to main content
gamedev.net
🔒 Locked

Errors compiling prog shell

Started by mangine 3 replies 250+ views
Original Post
mangine
mangine
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.
Remember who are today and tomarrow will arrive unnoticed.
krez
krez
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.
--- krez ([email="krez_AT_optonline_DOT_net"]krez_AT_optonline_DOT_net[/email])
mangine
mangine
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)
Remember who are today and tomarrow will arrive unnoticed.
SiCrane
SiCrane
How you would change it depends on your linker. For MSVC, there should be a linker setting /SUBSYSTEM:CONSOLE. Change that to /SUBSYSTEM:WINDOWS.
mangine
mangine
Thank you.
Remember who are today and tomarrow will arrive unnoticed.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.