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 / Oppose between darklights and sparky Collision..

Author
Message
mouness
16
Years of Service
User Offline
Joined: 21st Mar 2008
Location:
Posted: 24th Apr 2008 08:36 Edited at: 24th Apr 2008 10:29
Hi all.......
i have Oppose between DarkAi,darklights and SC_Collision.
this is the error:

i just calling DarkLights.h,DarkAi.h and SC_Collision.h and started them.

Please help me.
Thanks,
mouness
16
Years of Service
User Offline
Joined: 21st Mar 2008
Location:
Posted: 24th Apr 2008 11:51
anyone???????
did anyone got same problem before? i just call header files.whats the problem?
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 24th Apr 2008 15:36
Well, i don't exactly know the answer, but I think that some of the header files are defining the same thing.

Try only importing different header files, like taking out one or two etc.

I think this might be the problem because it says in the error message
Quote: "already defined in DarkAi.lib(DarkAI.obj)"


If that isn't the answer then sorry, I don't have an idea of whats going on...
unitech
17
Years of Service
User Offline
Joined: 27th Jun 2007
Location:
Posted: 24th Apr 2008 17:50 Edited at: 24th Apr 2008 17:53
Ya I got that with sparky's also, I have to change my object class to u_Object to avoid conflicting names...

You will have to find the conflict and change the class name in one of the includes. i would change it in sparky's since it wont be updated ever again I would think.

Best to go with darkPhys. sparky's is good but its worth it to go with darkPhys. plays nice with others..
mouness
16
Years of Service
User Offline
Joined: 21st Mar 2008
Location:
Posted: 24th Apr 2008 20:32
ok i found the solution of this problem in Microsoft Website
Quote: "To fix, add /FORCE:MULTIPLE to the linker command line options, and make sure that uuid.lib is the first library referenced. "
and this solution work fine with me.
and this link also:
http://support.microsoft.com/kb/148652/en-us/
thanks.
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 24th Apr 2008 22:17
Hmm. when I got that error with sparky's I just opened SC_Collision.h, added a line below the top line that reads: #pragma once, I saved, never had the problem again.

mouness
16
Years of Service
User Offline
Joined: 21st Mar 2008
Location:
Posted: 25th Apr 2008 07:35 Edited at: 25th Apr 2008 07:36
jason,
the problem not sparky's with darklights just also darklights with darkai.
so can give me the code that u added?
thanks

Login to post a reply

Server time is: 2024-11-20 09:33:18
Your offset time is: 2024-11-20 09:33:18