如题,我在一个DLG的.CPP中增加了这么句话#include <list>,就报错了。不加它就没事。请问大家怎么办啊1>c:\program files\microsoft visual studio 9.0\vc\include\xxbind1(298) : error C2143: 语法错误 : 缺少“;”(在“常量”的前面)
1>c:\program files\microsoft visual studio 9.0\vc\include\xxbind1(298) : error C2059: 语法错误 : “常量”
1>c:\program files\microsoft visual studio 9.0\vc\include\xxbind1(298) : warning C4091: “static ”: 没有声明变量时忽略“std::tr1::_Ph<_Nx>”的左侧
1> with
1> [
1> _Nx=2
1> ]
1>c:\program files\microsoft visual studio 9.0\vc\include\xxbind1(298) : error C2059: 语法错误 : “常量”
1>c:\program files\microsoft visual studio 9.0\vc\include\xxbind1(298) : warning C4091: “static ”: 没有声明变量时忽略“std::tr1::_Ph<_Nx>”的左侧
1> with
1> [
1> _Nx=2
1> ]
============#include <xxx>
using namespace std;
namespace placeholders { // placeholders
static _Ph<_NARGS> _CLASS_NAME(_);
} // namespace placeholders
其中static _Ph<_NARGS> _CLASS_NAME(_);是报错的行。
你这个错误看下这个吧
http://social.msdn.microsoft.com/Forums/zh-CN/vclanguage/thread/b2c07250-701e-4383-b416-6ca8ecf7f5e9
我的环境就是VS2008 打过SP1。
加了using namespace std依然是同一个错误。
所以我说报错的原因不应该是没有加它。