Hi Everyone.
So I'm working on one of my projects and I decide to use a stack. I included <stack> on my main file, and defined the stack var as such
Quote: "
stack<int> ids;
"
When I went to compile I recieved a bunch of errors:
structs.h(92): error C2143: syntax error : missing ';' before '<'
structs.h(92): error C2501: 'dllStruct::stack' : missing storage-class or type specifiers
structs.h(92): error C2238: unexpected token(s) preceding ';'
line 92 in structs.h is the line above where I defined the stack exactly as it appears. It is inside a struct, but I don't think that that would matter.
So I'm thinking is there a conflict somewhere with the GDK, or am I doing something wrong? What headers does DarkGDK.h include by the way? Is the std namespace also already included? I ask because when I go to define a stack, it gives me the stack prototype in a tooltip, which tells me it should already be included. Same if I type std:: I get the list of all members of the standard namespace. Any ideas on why this isn't working?