問題描述:
在win7上遇到了以下錯誤
Error 1 fatal error C1859: ‘Debug\CppDllExport.pch’ unexpected precompiled header error, simply rerunning the compiler might fix this problem f:\document\visual studio 2008\codefx\visual studio 2008\cppdllexport\cppdllexport.cpp 18 CppDllExport
解決方法:
1. 禁用 /analyze (C++ => advanced => enable code analysis for C++)
2. 清除項目。 (之前的預編譯頭都删了)
3. 重新開機機器
4.禁用.pch檔案(C++ => Precompiled headers => create/use pre-compiled headers)