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 / Question for the pros

Author
Message
Phillip
21
Years of Service
User Offline
Joined: 4th Mar 2003
Location:
Posted: 22nd Sep 2005 18:51
when compiling db sdk i get this
--------------------Configuration: Demo - Win32 Debug----------------
Compiling...
Skipping... (no relevant changes detected)
Demo.cpp
Demo.obj - 0 error(s), 0 warning(s)

when linking i get this
Linking...Creating library Debug/Demo.lib and object Debug/Demo.exp
LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Demo.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

Demo.exe - 2 error(s), 1 warning(s)

I did the Dx sdk update and move around the lib and include files as sugegested in the forum, I even have vb6 service pack 5 installed. I think its an improvement to my last linking, I use to get 192 error(s) and 19 warning(s). could someone tell me what i'm doing wrong now?
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 22nd Sep 2005 20:58 Edited at: 22nd Sep 2005 20:59
Dont use Debug mode - causes more problems that it solves.

Oh, and you may need :



What version of the DX are you using with VS6 ?

Come to the third DarkBasic Pro Sci Fi Con - Be there and be square
Blog:http://spaces.msn.com/members/BouncyBrick/
Web Site:http://www.nicholaskingsley.co.uk
Mike Johnson
TGC Developer
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 22nd Sep 2005 22:22
What is it that you are trying to compile? Is this one of your own programs or one that came with the SDK?
Phillip
21
Years of Service
User Offline
Joined: 4th Mar 2003
Location:
Posted: 22nd Sep 2005 22:35
its the one of the examples that came with the dark game sdk its called example 1 here is the code
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 22nd Sep 2005 23:19 Edited at: 22nd Sep 2005 23:20
Have you tried release mode ? What type of project did you create ?

Come to the third DarkBasic Pro Sci Fi Con - Be there and be square
Blog:http://spaces.msn.com/members/BouncyBrick/
Web Site:http://www.nicholaskingsley.co.uk
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 23rd Sep 2005 01:21
Quote: "LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main"


There's the problem. Your project is being compiled as a debug console project. You need to switch to release mode and compile it as a windowed app. I don't know where the setting is in VS6, but in VS7.1, it's Properties->Linker->System->Subsystem, and needs to be set to Windows.

You can tell when you've got it right, as the linker command-line string will have '/SUBSYSTEM:WINDOWS' included somewhere in there ...
Oh, and it'll compile too

For free Plug-ins and source code http://www.matrix1.demon.co.uk
Phillip
21
Years of Service
User Offline
Joined: 4th Mar 2003
Location:
Posted: 23rd Sep 2005 16:15
Hey! I got it working thanks guys for all your help. Later on I will post a step by step guide on what i did.

Login to post a reply

Server time is: 2024-11-19 02:30:05
Your offset time is: 2024-11-19 02:30:05