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 / problem with std::map

Author
Message
axiagame
16
Years of Service
User Offline
Joined: 6th Dec 2007
Location: far far away...
Posted: 8th Dec 2007 21:06 Edited at: 8th Dec 2007 21:36
hello!!

I am trying to use the std::map type with my project in darkGDK, but it doesn't work...

I just add #include<map> in order to use it, but when I compile, I've got theese messages :

[MODEDIT]



[END_MODEDIT]
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 8th Dec 2007 21:35
These errors may be caused by the order in which the Linker, links in your libraries. May I point you to this MSDN reference which discusses these types of errors, with some possible solutions in resolving them.

http://support.microsoft.com/kb/148652

Paul.

axiagame
16
Years of Service
User Offline
Joined: 6th Dec 2007
Location: far far away...
Posted: 8th Dec 2007 22:48
I'm affraid this can not resolve this problem. The functions I am using are present in DarkGDK and MSVCP80.dll librairies. Both of them are necessary and I can't modify them
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 9th Dec 2007 13:16
Set your C++ Code generation to 'Multithreaded' and see if that solves the problem.

Utility plugins collection and
http://www.matrix1.demon.co.uk for older plug-ins and example code
axiagame
16
Years of Service
User Offline
Joined: 6th Dec 2007
Location: far far away...
Posted: 9th Dec 2007 16:02
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaah

I changed my project configuration like always at the begining but not to multithread but to multithread DLL!!!

The problem is now solved lol.

How stupid I am!

thank you IanM
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 10th Dec 2007 16:41 Edited at: 10th Dec 2007 16:42
Not Stupid - "DAFT" - We all have our "Daft" Moments. If you were Stupid - I'd doubt you'd be be writing software at all!
[edit slight grammer fix since I posted - I noticed a DAFTNESS in my short sentance - see happens to everyone!]

axiagame
16
Years of Service
User Offline
Joined: 6th Dec 2007
Location: far far away...
Posted: 11th Dec 2007 02:25
thanks jason p sage...

The problem is now solved, but there is still a little problem...

I made functions using std::map which you can find here




I'm sorry, this code is in french, so I'll give you some words :
ajouter = add
recuperer = get
vider = clear

The ASRES functions I coded do the following
ASRES_New : return a free ressource index for the element type you specify
ASRES_Del : free a ressource index, and delete the corresponding ressource if needed.
In order to work, ASRES needs to be initialized at the begining of my code and manualy closed at the end, and I musn't use any resource indexes I didn't get by it. All of theese conditions are respected.

In my main code, I use ajouter_texture, etc... to add textures and objects into my game, and vider_liste in order to clear my lists before exiting. This compiles very well, but the problem is when I end the game a runtime error occurs...

Login to post a reply

Server time is: 2024-11-17 00:04:25
Your offset time is: 2024-11-17 00:04:25