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 / Console code ported to GDK?

Author
Message
hardcore jc
16
Years of Service
User Offline
Joined: 3rd Jul 2008
Location:
Posted: 6th Jul 2008 08:58
I wrote 4 classes that are meant to output to the console.(i.e. output i used are cout...) I added their source and header files in my DarkGDK project. However, I havent even done any additional coding, Main.cpp wont compile and gives out these errors. Any ideas?

Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 6th Jul 2008 19:51 Edited at: 6th Jul 2008 19:51
Try compiling in Release mode and see if the linking errors don't go away.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
hardcore jc
16
Years of Service
User Offline
Joined: 3rd Jul 2008
Location:
Posted: 6th Jul 2008 20:38
Weird, it compiled without any errors.

Just for clarification, DGDK is oop right? I read over an advanced tutorial but it didnt use any objects.
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 6th Jul 2008 21:40 Edited at: 7th Jul 2008 00:33
Quote: "Weird, it compiled without any errors. "


The problem is that there is no debug library for DGDK. To allow it to compile in debug mode you need to go into the properties of the debug mode project and change

Configuration Properties/c/C++/Code Generation

and set Runtime Library to /MT rather than /MTd.

This isn't always necessary. But anytime you use any of the std library functions you'll probably want to make this adjustment

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
hardcore jc
16
Years of Service
User Offline
Joined: 3rd Jul 2008
Location:
Posted: 7th Jul 2008 00:30
Well that explains it, right now im just going to compile in release mode. hehe

However, how come I cant include the DarkGDK header file into any of my classes in my project? For example this gives out an error:




note that I havent added any methods calling on DarkGDK yet and it wont error if i comment out #include "DarkGDK.h"
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 7th Jul 2008 01:16
Did you use the wizard to in create the base game framework? If not then your project probably doesn't contain the path the the include directory with the DarkGDK.h include file.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
hardcore jc
16
Years of Service
User Offline
Joined: 3rd Jul 2008
Location:
Posted: 7th Jul 2008 01:42
Yep, I started with the wizard. I "add existing file" the class which was in the same project folder. The error doesnt say anything about my classes though, so could it still be the include directory you were talking about?

Here's a small sample of the error:

Login to post a reply

Server time is: 2024-11-20 15:36:55
Your offset time is: 2024-11-20 15:36:55