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 / OK... Vector and DarkGDK Error

Author
Message
ReiKumar
16
Years of Service
User Offline
Joined: 23rd Sep 2008
Location:
Posted: 7th Oct 2008 23:19
I know I've asked this before but the previous solution doesn't seem to work.

http://forum.thegamecreators.com/?m=forum_view&t=137535&b=22

If I do the instructions given to me at the link above, I get this error:


Quote: "
1>------ Build started: Project: Gun, Configuration: Debug Win32 ------
1>Compiling...
1>Main.cpp
1>Monsters.cpp
1>Weapons.cpp
1>Generating Code...
1>Linking...
1> Creating library C:\Users\Rei\Documents\Visual Studio 2008\Projects\Gun\Debug\Gun.lib and object C:\Users\Rei\Documents\Visual Studio 2008\Projects\Gun\Debug\Gun.exp
1>LINK : warning LNK4031: no subsystem specified; CONSOLE assumed
1>LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
1>C:\Users\Rei\Documents\Visual Studio 2008\Projects\Gun\Debug\Gun.exe : fatal error LNK1120: 1 unresolved externals

1>Build log was saved at "file://c:\Users\Rei\Documents\Visual Studio 2008\Projects\Gun\Gun\Debug\BuildLog.htm"
1>Gun - 2 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped =========="


What should I do?

IanM??

Anyone???
SushiBox
16
Years of Service
User Offline
Joined: 20th Sep 2008
Location: Ohio
Posted: 7th Oct 2008 23:35 Edited at: 7th Oct 2008 23:35
http://forum.thegamecreators.com/?m=forum_view&t=121186&b=22

search pl0x? This MAY help you, lots of reading.

www.Helios-Online.net
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 8th Oct 2008 00:11
Quote: "What should I do?"

Properties->Linker->System->Subsystem - set it to Windows.

If you get other errors after setting this then you've probably trashed your project or solution files - I'd suggest that you create a new solution/project, move your source code over to it, then delete the original.

ReiKumar
16
Years of Service
User Offline
Joined: 23rd Sep 2008
Location:
Posted: 8th Oct 2008 00:56
Quote: "Properties->Linker->System->Subsystem - set it to Windows.

If you get other errors after setting this then you've probably trashed your project or solution files - I'd suggest that you create a new solution/project, move your source code over to it, then delete the original.
"


Thanks that did it but what did that do?
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 8th Oct 2008 01:05
Quote: "Thanks that did it but what did that do? "


Um, set the target system to Windows.

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
Niels Henriksen
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location: Behind you breathing heavely
Posted: 8th Oct 2008 01:14
Quote: "Um, set the target system to Windows"


Maybe he by accĂ­dent set the target system to Linux?

Niels Henriksen
www.tales-of-the-realms.com
if Microsoft can sell software with bugs, so can I.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 8th Oct 2008 01:16
@ReiKumar,
Quote: "LINK : warning LNK4031: no subsystem specified; CONSOLE assumed"

First, that's a linker error.
Second, it says that there's no subsystem specified. Because of that it's defaulted to trying to build a console application - the GDK requires a windows application (unless you know what you are doing).

So, I got you to specify a subsystem within the linker section of the properties.

Login to post a reply

Server time is: 2024-09-30 07:19:44
Your offset time is: 2024-09-30 07:19:44