天天看點

C++:unexpected end of file while looking for precompiled header directive

在預設的情況下,出現以下錯誤提示: 

        fatal error C1010: unexpected end of file while looking for precompiled header directive

        執行 cl.exe 時出錯.

上面這句的意思是:

        緻命錯誤C1010:未知檔案末尾,當查找預編譯頭檔案指令。

解決方法:

在菜單欄: 工具--設定--C/C++,選自動使用預補償頁眉,或 不适用預補償頁眉。

=============================================