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 / iostream, vector, string, etc in a DGDK project?

Author
Message
That1Smart Guy
15
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 20th May 2011 23:18
A noob question i know, but its been a bit since ive used DGDK and i forgot how to get the standard C++ header files into a DGDK project. i just stuck em in after the #include "DarkGDK.h" and got some unresolved external symbol errors.

whats up?


deHackerOwnz
13
Years of Service
User Offline
Joined: 20th May 2011
Location:
Posted: 21st May 2011 01:49
I really need this information too.

Every time I try to include the usual windows source files, and namespaces, I just get a whole load of error's thrown at me.

I do really need to figure this out, so if someone knows how, please do post

~deHackerOwnz~
Matty H
15
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 21st May 2011 01:50
You need to change the compiler settings from 'multithreaded debug' to 'multithreaded'.

I think its under 'code generation'.

That1Smart Guy
15
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 21st May 2011 06:27
that worked!!....not quite sure WHY.....but it worked!!! thanks!!

btw to find code generation go to Project>YourProjectName Properties>Configuration Properties>C/C++


halley
13
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 23rd May 2011 05:27
I meet the same problem,but the method doesn't work for me .Can you give more help?

the following is error information:

1>libcpmtd.lib(xdebug.obj) : error LNK2019: __malloc_dbg, "void * __cdecl operator new(unsigned int,struct std::_DebugHeapTag_t const &,char *,int)" (??2@YAPAXIABU_DebugHeapTag_t@std@@PADH@Z)
1>libcpmtd.lib(xdebug.obj) : error LNK2019: __free_dbg, "void __cdecl operator delete(void *,struct std::_DebugHeapTag_t const &,char *,int)" (??3@YAXPAXABU_DebugHeapTag_t@std@@PADH@Z)

give my best
Mulderman
20
Years of Service
User Offline
Joined: 8th Jan 2004
Location: C:\\
Posted: 29th May 2011 16:12 Edited at: 29th May 2011 16:43
This post helped me:

http://forum.thegamecreators.com/?m=forum_view&t=118754&b=22&msg=1414029#m1414029

Basically instead of Multithreaded Debug use Multithreaded.


Sample code i just typed in quickly to test it:



Kiisu means kitty in english.

Login to post a reply

Server time is: 2024-10-02 17:23:43
Your offset time is: 2024-10-02 17:23:43