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 / ĂŽdentifier not found

Author
Message
Serain
18
Years of Service
User Offline
Joined: 17th Jul 2006
Location:
Posted: 1st Jul 2009 00:30 Edited at: 1st Jul 2009 00:32
Hello everyone,
I've just started darkGDK and I'm trying to get sparky running. My problem isn't with the collision itself but when I compile something using these commands I get "Identifier not found" for each time I call the command.
I don't get it because I copied the dll and lib to the proper place and the sample included runs without problem.
Here's what I get with my own code:

Quote: "Build started: Project: Dark GDK - 3D Game1, Configuration: Debug Win32 ------
Compiling...
Main.cpp
c:documents and settingsnode-langloismes documentsvisual studio 2008projectsdark gdk - 3d game1dark gdk - 3d game1main.cpp(123) : error C3861: 'SC_setupObject': identifier not found
c:documents and settingsnode-langloismes documentsvisual studio 2008projectsdark gdk - 3d game1dark gdk - 3d game1main.cpp(124) : error C3861: 'SC_setObjectCollisionOn': identifier not found
c:documents and settingsnode-langloismes documentsvisual studio 2008projectsdark gdk - 3d game1dark gdk - 3d game1main.cpp(126) : error C3861: 'SC_setupObject': identifier not found
c:documents and settingsnode-langloismes documentsvisual studio 2008projectsdark gdk - 3d game1dark gdk - 3d game1main.cpp(127) : error C3861: 'SC_setObjectCollisionOn': identifier not found
c:documents and settingsnode-langloismes documentsvisual studio 2008projectsdark gdk - 3d game1dark gdk - 3d game1main.cpp(131) : error C3861: 'SC_updateObject': identifier not found
"


Any help will be appreciated!
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 1st Jul 2009 00:39
Did you include the appropriate header file?

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
Serain
18
Years of Service
User Offline
Joined: 17th Jul 2006
Location:
Posted: 1st Jul 2009 00:53
Yes I did:
Quote: "#include "DarkGDK.h"
#include "SC_Collision.h""


Sorry I should have said so.
heyufool1
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 1st Jul 2009 01:03
Did you copy the Sparky collision library to the library folder in the visual studio program folder?

Phosphoer
16
Years of Service
User Offline
Joined: 8th Dec 2007
Location: Seattle
Posted: 1st Jul 2009 01:08
Did you call SC_Start( )? ( Or SC_Begin( )? I can't remember the name )

AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 1st Jul 2009 02:16 Edited at: 1st Jul 2009 02:19
Quote: "Did you call SC_Start( )? ( Or SC_Begin( )? I can't remember the name )"


Nahh, that wouldn't happen. An "identifer not found" error typically means the compiler can't find any declaration for a variable or function he's using.

Although you should make sure you're calling SC_Start() as well.

Make sure you're spelling the functions right. Also C++ is case-sensitive so make sure that you use appropriate case for the function names.

EDIT:

Yep, it appears the casing is the problem. You're using SC_setupObject(), SC_updateObject(), etc. when you should be using SC_SetupObject() and SC_UpdateObject(). That applies to all the functions. The first letter following the SC_ is always capitalized.

i like orange
Phosphoer
16
Years of Service
User Offline
Joined: 8th Dec 2007
Location: Seattle
Posted: 1st Jul 2009 03:21
Ah yes, nice catch Andrew ^^.

Serain
18
Years of Service
User Offline
Joined: 17th Jul 2006
Location:
Posted: 1st Jul 2009 09:14 Edited at: 1st Jul 2009 09:15
Yes that was it, Thanks!
It would have taken me a long time to figure out, specialy because they are written without capitals in the help file xD
Thanks again

Login to post a reply

Server time is: 2024-10-01 05:57:31
Your offset time is: 2024-10-01 05:57:31