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 / Conflict between shader.h and sparky's collision dll

Author
Message
zzz
19
Years of Service
User Offline
Joined: 13th Nov 2005
Location: Sweden
Posted: 19th Oct 2008 18:24
I've been experimenting with a few of the included shader examples in the GDK and began leaning towards buying darkShader. However, when I try to include shader.h in my project which uses Sparky's collision dll(Sc_Collision.h), I get these nasty errors:


Does anyone have an idea how to fix this?
I'm using VS C++ 2008 express.
All help appreciated.

The Real Abaddon
16
Years of Service
User Offline
Joined: 26th Jun 2008
Location:
Posted: 21st Oct 2008 18:32
I get this error too, can anyone help ?
The Real Abaddon
16
Years of Service
User Offline
Joined: 26th Jun 2008
Location:
Posted: 21st Oct 2008 20:15
Please someone help on this, i`ve tried almost everything to make this work but with no succes i get this error

I`ve worked alot on my project but when i wanted to include shaders into my project i stumbled into this error.
How can i solve this ?
zzz
19
Years of Service
User Offline
Joined: 13th Nov 2005
Location: Sweden
Posted: 21st Oct 2008 22:10
Sigh. I've not solved this yet, either. It seems like both shaderdata.lib and SC_Collision.lib have declared sObject, bInitialised and __cdecl? Is it possible to, like, "isolate" one of the libraries?

Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 21st Oct 2008 23:37
Sure. Try putting "using namespace (something);" at the top of the headers. Make sure they're different. And make sure you make the necessary changes to YOUR code.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 22nd Oct 2008 01:11
That won't work - unless the libraries have been compiled using those namespaces, the linker will still have the same problems.

The only real fix is for one of those libraries to be changed and recompiled.

Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 22nd Oct 2008 02:23
It might be possible to create a dll to wrap the .libs, and so keep them separate... But I don't know:\

[b]Yuor signutare was aresed by a deslyxic mud...
BOX2D V2 HAS HELP FILES! AND A WIKI!
zzz
19
Years of Service
User Offline
Joined: 13th Nov 2005
Location: Sweden
Posted: 22nd Oct 2008 16:31
Ok. Thanks anyway guys!

Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 22nd Oct 2008 22:28
Can anyone tell me where to get the latest version of Sparky's collision because I cant find it!
The Real Abaddon
16
Years of Service
User Offline
Joined: 26th Jun 2008
Location:
Posted: 27th Oct 2008 13:36
Bran: You can get it from here http://forum.thegamecreators.com/?m=forum_view&b=5&t=74762&p=0
jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 27th Oct 2008 16:47
Someone ought to sticky Sparky's.
Would it not be possible to rename the conflicting functions in the headers, but make them point the the same place in the libs as before?
The Real Abaddon
16
Years of Service
User Offline
Joined: 26th Jun 2008
Location:
Posted: 27th Oct 2008 17:28
Unfortunately no because it's a lib

Login to post a reply

Server time is: 2024-11-25 05:40:45
Your offset time is: 2024-11-25 05:40:45