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 / Cannot use vectors with Dark GDK?

Author
Message
PeteyPii
13
Years of Service
User Offline
Joined: 28th Sep 2010
Location:
Posted: 29th Sep 2010 01:36 Edited at: 29th Sep 2010 22:15
I have run across a problem where whenever I (or something else) uses a vector, I get a linker error. even just the code:



gives me the error:



So is there some setting i am supposed to set before using vectors, or am i supposed to use a different data type with Dark GDK? I don't get these errors with the same code in a non-darkgdk project. ive just started using Dark GDK so i am still learning about it. i am using MVC 2008 with Windows 7. any help is appreciated

EDIT: this only happens in the debug configuration. the release exe compiles without any errors
TechLord
21
Years of Service
User Offline
Joined: 19th Dec 2002
Location: TheGameDevStore.com
Posted: 29th Sep 2010 22:49
Bran flakes91093
15
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 30th Sep 2010 00:13
Change the runtime library to /MT, from /MTd, for debug builds.

Project->(Project Name) Properties...->[+]Configuration Properties->[+]C/C++->Code Generation

“C++ : Where friends have access to your private members.”
-Gavin Russell Baker
PeteyPii
13
Years of Service
User Offline
Joined: 28th Sep 2010
Location:
Posted: 30th Sep 2010 01:16
Thank you Bran, that was definitely the problem, everything is working correctly now. However, if you don't mind me asking, what is the reason behind needing to change the runtime library?
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 30th Sep 2010 15:48
dark GDK's library was built with /MT, your project's runtime library must match the library(ies) it's using

Login to post a reply

Server time is: 2024-06-30 11:56:10
Your offset time is: 2024-06-30 11:56:10