Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / DarkGDK unresolved external symbol _main

Author
Message
tparkin
17
Years of Service
User Offline
Joined: 28th Mar 2007
Location:
Posted: 27th Jun 2007 15:43
Hi,

Just installed the DarkGDK and having trouble getting it to compille in VS2005 Express. I setup the includes and library files, just stuck on one last error.

1>LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup

It's requiring me to define a main() function, but obviously it shouldn't. How can I fix this?

Thanks in advance.
Ianhfar
20
Years of Service
User Offline
Joined: 8th Jul 2004
Location: UK
Posted: 27th Jun 2007 16:01
You need to add LIBCMT.lib to "ignore specific library" found in your project/Linker/input property
tparkin
17
Years of Service
User Offline
Joined: 28th Mar 2007
Location:
Posted: 28th Jun 2007 00:12
Hi,

Actually that is not the solution. I had to change my project settings SUBSYSTEM to WINDOWS and not CONSOLE.

Found this shortly after posting.

Thanks.

Login to post a reply

Server time is: 2024-11-16 18:13:26
Your offset time is: 2024-11-16 18:13:26