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 / Calling GDK functions from different source files

Author
Message
Mnemonix
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: Skaro
Posted: 12th May 2009 23:18
I have implemented a class headerfile and a corresponding cpp file which implements the class. I have a problem however because I want to use functions from DarkGDK.h and the compiler wont let me do it, even after including the file. Is there a way around this?

Mnemonix
jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 12th May 2009 23:23
Well it should, quite frankly. I imagine you have the project set up weirdly. You need to include the .cpp in the project so that it compiles, and get the header in the right place, with externs and guards and everything.

Mnemonix
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: Skaro
Posted: 12th May 2009 23:36
Nevermind, it was my stupidity causing the problem and it is now fixed

Mnemonix

Login to post a reply

Server time is: 2024-11-05 18:50:11
Your offset time is: 2024-11-05 18:50:11