问题描述
我有一个c ++控制台应用程序已经做得很好,干净的make开始引发编译器错误。显然我已经重新定义或省略了一些东西,但我不知道是什么。
I have a c++ console app that has been doing just fine and upon clean make started throwing compiler errors. Obviously I've redefined or omitted something, but I'm not sure what.
------ Rebuild All started: Project: alpineProbe, Configuration: Release Win32 ------
Deleting intermediate and output files for project 'abc', configuration 'Release|Win32'
Compiling...
wmiTest.cpp
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\excpt.h(60) : error C2065: '_$notnull' : undeclared identifier
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\excpt.h(60) : error C3861: '_Pre1_impl_': identifier not found
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\excpt.h(60) : error C2146: syntax error : missing ')' before identifier '_Deref_pre2_impl_'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\excpt.h(60) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\excpt.h(64) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(94) : error C2144: syntax error : 'int' should be preceded by ';'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(94) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
我确定这是明显的,但我没有看到它。
I'm sure it's something obvious, but I don't see it. One other thing, I reloaded the project from a backup copy.
感谢任何帮助
编辑:
根据Michael Burr的建议使用/ showIncludes提供以下内容:
Using /showIncludes as suggested by Michael Burr gives the following:
1>Note: including file: c:\development\alpineaccess\final\Tokenizer.h
1>Note: including file: c:\development\alpineaccess\final\testFunctions.h
1>Note: including file: c:\development\alpineaccess\final\curl/curl.h
1>Note: including file: c:\development\alpineaccess\final\curl\curlver.h
1>Note: including file: C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h
1>Note: including file: C:\Program Files\Microsoft Visual Studio 9.0\VC\include\crtdefs.h
1>Note: including file: C:\Program Files\Microsoft Visual Studio 9.0\VC\include\sal.h
1>Note: including file: c:\program files\microsoft visual studio 9.0\vc\include\codeanalysis\sourceannotations.h
1>Note: including file: C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\windows.h
1>Note: including file: C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\sdkddkver.h
1>Note: including file: C:\Program Files\Microsoft Visual Studio 9.0\VC\include\excpt.h
1>Note: including file: C:\Program Files\Microsoft Visual Studio 9.0\VC\include\crtdefs.h
注意,通过sourceannotations.h有一个循环引用。我看到了问题是什么,但是不知道如何解决它。
Note that there's a circular reference via sourceannotations.h. I see what the problem is, but have no idea how to fix it.
推荐答案
找到它。感谢和他建议使用/ showIncludes。
Found it. Thanks to Michael Burr and his suggestion to use /showIncludes.
问题是,C ++安装中的文件\CodeAnalysis\sourceannotations.h已被破坏。重新安装应该解决问题。
The problem was that the file \CodeAnalysis\sourceannotations.h in the C++ installation had gotten clobbered. Reinstalling should fix it.
感谢您的帮助
这篇关于vs 2008 623编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!