You are including the list header, but using a map. Include <map> instead and do not forget to somehow open up the std namespace. Additionally, why not use make_pair? As in: op.insert(make_pair(CNodeTransformer::OPTIMIZATION_TYPE,optType));
[EMAIL PROTECTED] wrote:
are porting an application from Windows to Linux. The native code is in VC++. We're getting the following error in g++ for the code given below...
the code in vc++ is :
#include <list>
146 map<int,int> op; 147 op.insert(pair<int,int<(CNodeTransformer::OPTIMIZATION_TYPE, optType));
we are getting error in gc++ :
CMapperFlow.cpp: In member function `int CMapperFlow::mainMapper(CFlowEntities&)': CMapperFlow.cpp:147: parse error before `<' token CMapperFlow.cpp:147: parse error before `)' token
Has anyone got a soln for it...
_______________________________________________ Help-gplusplus mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gplusplus
