I've had this problem for quite a while and I'm at my limit, haha.
I'm using VS2008 because DGDK doesn't work for VS2010.
Anyways, in normal projects, I can use the STLs like string, stack, vector, queue, etc. but in DGDK projects, I get error messages.
I can use the STLS in my main.cpp for some reason.
#include <vector>
vector<int> v_i;
But in anything other than the main.cpp, I get errors:
1>c:\users\acer\documents\visual studio 2008\projects\ItBotB\ItBotB v0.2\_hero.cpp(4) : error C2143: syntax error : missing ';' before '<'
1>c:\users\acer\documents\visual studio 2008\projects\ItBotB\ItBotB v0.2\_hero.cpp(4) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
I'm guessing it's because nothing "includes" or depends on main.cpp so it's the only thing that can use STLs but I don't get "Why" or how to fix this =/
Anyone know what's going on?
I've even had to learn how to work with C-style strings because I can't access the library "string" =(
Not to say that it was a bad learning experience but I'd rather code my game for now.
First year student of a game-programming course