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 / Help With <vector> C++

Author
Message
Theone2k
16
Years of Service
User Offline
Joined: 31st Jan 2008
Location:
Posted: 4th Feb 2008 22:37
When I try to compile my prog in Debug with a vector defined i get these errors



The Code

Theone2k
16
Years of Service
User Offline
Joined: 31st Jan 2008
Location:
Posted: 4th Feb 2008 23:20
Fixed it had a prob with a Option with my C++ lol

found it just as the post came active

Soz All
datex
16
Years of Service
User Offline
Joined: 2nd Feb 2008
Location:
Posted: 6th Feb 2008 19:04
Could you tell how did you resolve this ?
I have the same problem and don't know what to do..xD
Dark Side Coder
16
Years of Service
User Offline
Joined: 8th Feb 2008
Location:
Posted: 8th Feb 2008 11:21
Yes, please tell us, I'm very frustrated by this problem right now...
Dark Side Coder
16
Years of Service
User Offline
Joined: 8th Feb 2008
Location:
Posted: 8th Feb 2008 11:53
Hey, I found the solution! It's a bit long-winded but check it out:

http://forum.thegamecreators.com/?m=forum_view&t=121186&b=22

The short version is this: Go to Project Settings->C/C++->Code Generation. Under Runtime Library change Multi-Threaded Debug (/MTd) to Multi-Threaded (/MT). The reason is that there is no debug version of the DGDK libs, so your project is using the release version. Well, as it turns out linking this release version with the debug version of the C++ runtime library doesn't work very well! (Hence all your linker errors).

Btw, you can still debug your code in spite of using the release version of the runtime lib. They only problem is, if it crashes inside the runtime, you can't debug that.

Cheers!
datex
16
Years of Service
User Offline
Joined: 2nd Feb 2008
Location:
Posted: 8th Feb 2008 20:07 Edited at: 8th Feb 2008 21:12
Thnx Dark Side it works ok now

//EDIT: despite that what Dark Side wrote, we have to add this:
libc.lib, msvcrt.lib, libcd.lib, libcmtd.lib, msvcrtd.lib
to Proj.set->Linker->Input->Ignore specific library.

Login to post a reply

Server time is: 2024-09-29 11:21:26
Your offset time is: 2024-09-29 11:21:26