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 / question about implementation of stack and vector in dark GDK

Author
Message
jayRon
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location:
Posted: 10th Feb 2011 08:54
why do i alway receive linking errors when i use vector or stack STL

#include "DarkGDK.h"

#include <stack>
using namespace std;

// the main entry point for the application is this function
void function();
void DarkGDK ( void )
{
// turn on sync rate and set maximum rate to 60 fps
stack<int> stl;
stl.push(100);

dbSyncOn ( );
dbSyncRate ( 60 );
function();
// our main loop
while ( LoopGDK ( ) )
{
// update the screen
dbSync ( );
}

// return back to windows
return;
}

im testing if stack and vectors will work in dark GDK because it is a requirment for my project..

your help will be appreciated (just new in this forum )
TechLord
21
Years of Service
User Offline
Joined: 19th Dec 2002
Location: TheGameDevStore.com
Posted: 10th Feb 2011 14:50
I recommend posting the exact errors. Working examples for stacks, queues, lists, vectors and other containers can be found Cplusplus.com Reference. I use cplusplus.com religiously.

Bran flakes91093
15
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 10th Feb 2011 21:14
http://forum.thegamecreators.com/?m=forum_view&t=155298&b=22

“C++ : Where friends have access to your private members.”
-Gavin Russell Baker

Login to post a reply

Server time is: 2024-06-23 02:57:28
Your offset time is: 2024-06-23 02:57:28