Game Development Community

C++ STL doesn't work with a TGE Visual Studio Project File

by Michael Layfield · in Torque Game Engine · 05/31/2006 (7:54 am) · 2 replies

Well I tried instantiating a Map<> in my code but it keeps on reporting a syntax error. I tested my syntax by creating a clean VC++ project file and STL actually works fine. Also I noticed that if I comment out the #include, a standard VC++ project file says it can't find 'map' in std, while in the TGE project, it says it can't find namespace std. A little help? I'm not that used to intricacies in Visual Studio.

#1
05/31/2006 (8:01 am)
Do a search for STL and you'll find a couple of helpful resources for using it in TGE.
#2
05/31/2006 (1:43 pm)
There is a STL_fix, because you cannot use STL in TGE/TSE directly due to the Torque memory manager.

Either use the STL_fix or disable the mem manager. Search and you will find!