用VC IDE进行编译?
我有一程序Momentum.cpp, 用命令行方式编译
cl /c /w /IE:\Progra~1\ofeli\include Momentum.cpp
可以通过,而用VC IDE的Workspace却出现如下错误:
我已将Project-setting-C++内的编译选项调整过了,还是有错
请高手指点!谢谢!
Compiling...
Momentum.cpp
E:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afx.h(1632) : note C6311: E:\PROGRAM FILES\OFELI\INCLUDE\MemTrack.h(45) : see previous definition of 'DEBUG_NEW'
E:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(122) : error C2059: syntax error : 'string'
E:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(123) : error C2091: function returns function
E:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(123) : error C2802: static member 'operator new' has no formal parameters
E:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(123) : error C2333: 'new' : error in function declaration; skipping function body
E:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(131) : error C2059: syntax error : 'string'
E:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(131) : error C2091: function returns function
E:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(131) : error C2802: static member 'operator new' has no formal parameters
E:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(135) : error C2059: syntax error : 'string'
E:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(135) : error C2091: function returns function
E:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(135) : error C2556: 'void *(__cdecl *__stdcall CNoTrackObject::operator new(void))(unsigned int,const char *,int)' : overloaded function differs only by return type from 'void *(__cdecl *__stdcall CNoTrackObject::operator new(void))(unsigned int)'
E:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(131) : see declaration of 'new'
Error executing cl.exe.