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 / Trying to run SC Sliding Demo... Guess what, linker error... 8-#

Author
Message
Core2uu
16
Years of Service
User Offline
Joined: 15th Mar 2008
Location: Saskatoon, SK, Canada
Posted: 12th May 2008 08:34
So... I was trying to run the SC SlidingDemo when... this happened...



~~It's not who you are underneath, but what you do that defines you.~~
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 12th May 2008 09:08
I didn't crash yet...

Um....

open your SC_Collision.h file... and add this line...

#pragma once

...to the VERY FIRST row in the file so the top of the file looks like:



Life is good.. problem solved.

Core2uu
16
Years of Service
User Offline
Joined: 15th Mar 2008
Location: Saskatoon, SK, Canada
Posted: 13th May 2008 02:11
OK... So... I changed it in the project directory, the DGDK dir... and the VC++ dir... And GUESS WHAT???

(Drumroll \/ \/ \/ )

It didn't work... ... Same error, no difference... Any more suggestions?

~~It's not who you are underneath, but what you do that defines you.~~
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 13th May 2008 04:14
Quote: "OK... So... I changed it in the project directory, the DGDK dir... and the VC++ dir... And GUESS WHAT???"
LOL... um... why 3 places?

that doesn't make sense. And In my experience with sparky, when I got those redefition errors, the pragma line addition solved it!

LOL.. but doesn't mean you aren't getting those errors from something else.

P.S. I personally put the sparky include in the include file dir that DarkGDK uses, same for the *.lib file.. goes where the darkgdk libs are.. that way no config.. just plug-n-play more or less.

Core2uu
16
Years of Service
User Offline
Joined: 15th Mar 2008
Location: Saskatoon, SK, Canada
Posted: 13th May 2008 05:42
Quote: "LOL... um... why 3 places?"


Because it wasn't working with one... or two... and apparently it doesn't work with three either...

Quote: "I personally put the sparky include in the include file dir that DarkGDK uses, same for the *.lib file.. goes where the darkgdk libs are.. that way no config.. just plug-n-play more or less."


I have them there but everywhere you can possibly put them... just to be safe...

Quote: "LOL.. but doesn't mean you aren't getting those errors from something else."


Any ideas what that something else could be? If you don't I could always figure it out on my own... Plus I don't ABSOLUTELY NEED to run... It was just to help me get a hold on what the source code was trying to do...

~~It's not who you are underneath, but what you do that defines you.~~
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 13th May 2008 06:00 Edited at: 13th May 2008 06:06
Your linker error indicates that you're trying to mix debug libraries with release libraries. I'd check that you are building a Release build, and using release libraries.

The libraries have somewhat of a naming convention:
libcmt.lib = C runtime static multi-threaded release library.
MSVCRTD.lib = Microsoft VisualC++ Runtime static Debug library.
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 13th May 2008 06:03
(Thanx Jinzai )

Code2uu.. report back.. I'm curious.. sparky is pretty good and reliable!

Core2uu
16
Years of Service
User Offline
Joined: 15th Mar 2008
Location: Saskatoon, SK, Canada
Posted: 13th May 2008 06:14
You know what... it compiled! And you know what else... the samples didn't even come with source files so I got a Sparky collision setup error message 'cuz the objects didn't exist...

Wow...

~~It's not who you are underneath, but what you do that defines you.~~
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 13th May 2008 17:57
Something is wrong. I had a couple snafu things to overcome when I first installed it and tried the demos... but I got it working and then was able to use the code as a guide to how you're supposed to use it. It's been pretty smooth sailing.

Core2uu
16
Years of Service
User Offline
Joined: 15th Mar 2008
Location: Saskatoon, SK, Canada
Posted: 14th May 2008 01:06
Quote: "Something is wrong."


Nothing is wrong... Not with the compilation at least because it compiles perfectly in release mode... But as it is the package (the on I have at least) doesn't include the media files (level1.x and something else) used in the sliding collision demo...

It compiles great but during setup SC can't find object 1 because obviously it doesn't exist and gives me the object not existing error...

~~It's not who you are underneath, but what you do that defines you.~~
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 14th May 2008 17:13
Hmmm...

From DarkGDK OOP Lib GameClasses !Readme.txt
Quote: "
==============================================================================
~!~ SOFTWARE, ACKNOWLEDGEMENTS, and LINKS
==============================================================================
-The Game Creators - aka TGC - http://www.thegamecreators.com

-DarkGDK - C++ Game Development SDK - http://gdk.thegamecreators.com/

-Dark Physics - aka DP - http://darkphysics.thegamecreators.com/

-Paul Johnson's (Sparky's) Collision DLL - aka Sparky's:
http://forum.thegamecreators.com/?m=forum_view&t=74762&b=5

-Ageia PhysX - aka - http://www.ageia.com
"


elantzb
16
Years of Service
User Offline
Joined: 10th May 2008
Location: Classified
Posted: 14th May 2008 23:35
I'm going to suggest making a new project with the Wizard/Template, and copy all of your files over.

That would explain:
Core2uu
16
Years of Service
User Offline
Joined: 15th Mar 2008
Location: Saskatoon, SK, Canada
Posted: 16th May 2008 06:57
Well that might solve the link problem but the problem that the source files aren't included with the pkg still remains... I'm gonna go re-D/L and see what happens...

~~It's not who you are underneath, but what you do that defines you.~~
Core2uu
16
Years of Service
User Offline
Joined: 15th Mar 2008
Location: Saskatoon, SK, Canada
Posted: 16th May 2008 07:02
Does anyone mind running any of the demos to see if they work... I re-downloaded SC but once again the media files are nowhere to be found...

~~It's not who you are underneath, but what you do that defines you.~~

Login to post a reply

Server time is: 2024-11-20 11:27:15
Your offset time is: 2024-11-20 11:27:15