c++程序编译链接问题
自己编写的程序,之前运行都是没有问题的,这两天突然在编译时出现了下面的问题:
Compiling resources...
Compiling...
StdAfx.cpp
c:\program files\microsoft visual studio\vc98\mfc\include\afxmsg_.h(46) : error C2143: syntax error : missing ';' before 'enum [tag]'
c:\program files\microsoft visual studio\vc98\mfc\include\afxmsg_.h(46) : error C2501: 'V' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\mfc\include\afxmsg_.h(46) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
learn.exe - 3 error(s), 0 warning(s)
程序在其他电脑上可以运行,没有问题。出错的位置是afxmsg_.h,这个是系统自带的头文件,都没动过;我尝试新建一个单文档程序,MFC框架也会出现同样的这个问题。排除RP问题,这到底是为什么呢?