我定义了一个list变量list<pair<string,string>> gMsg,
文件头已经加上了:
#include <list>
#include <iostream>
using namespace std;
编译报错:
error C2146: syntax error : missing ',' before identifier 'gMsg'
error C2065: 'gMsg' : undeclared identifier
error C2143: syntax error : missing '>' before ';'
error C2208: 'class std::list' : no members defined using this type
但在VS2005下却能编译通过,不知怎么处理,请大虾指点,谢了。