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 FilesMicrosoft Visual Studio 9.0VCincludeexcpt.h(60) : error C2065: '_$notnull' : undeclared identifier C:Program FilesMicrosoft Visual Studio 9.0VCincludeexcpt.h(60) : error C3861: '_Pre1_impl_': identifier not found C:Program FilesMicrosoft Visual Studio 9.0VCincludeexcpt.h(60) : error C2146: syntax error : missing ')' before identifier '_Deref_pre2_impl_' C:Program FilesMicrosoft Visual Studio 9.0VCincludeexcpt.h(60) : warning C4229: anachronism used : modifiers on data are ignored C:Program FilesMicrosoft Visual Studio 9.0VCincludeexcpt.h(64) : error C2059: syntax error : ')' C:Program FilesMicrosoft Visual Studio 9.0VCincludectype.h(94) : error C2144: syntax error : 'int' should be preceded by ';' C:Program FilesMicrosoft Visual Studio 9.0VCincludectype.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.
Edit:
Using /showIncludes as suggested by Michael Burr gives the following:
1>Note: including file: c:developmentalpineaccessfinalTokenizer.h 1>Note: including file: c:developmentalpineaccessfinal estFunctions.h 1>Note: including file: c:developmentalpineaccessfinalcurl/curl.h 1>Note: including file: c:developmentalpineaccessfinalcurlcurlver.h 1>Note: including file: C:Program FilesMicrosoft Visual Studio 9.0VCincludestdio.h 1>Note: including file: C:Program FilesMicrosoft Visual Studio 9.0VCincludecrtdefs.h 1>Note: including file: C:Program FilesMicrosoft Visual Studio 9.0VCincludesal.h 1>Note: including file: c:program filesmicrosoft visual studio 9.0vcincludecodeanalysissourceannotations.h 1>Note: including file: C:Program FilesMicrosoft SDKsWindowsv6.0Aincludewindows.h 1>Note: including file: C:Program FilesMicrosoft SDKsWindowsv6.0Aincludesdkddkver.h 1>Note: including file: C:Program FilesMicrosoft Visual Studio 9.0VCincludeexcpt.h 1>Note: including file: C:Program FilesMicrosoft Visual Studio 9.0VCincludecrtdefs.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.
See Question&Answers more detail:os