VS2008+ Win10 之 WinCE SDK 编译错误(1) c1xx : fatal error C1023 & (2)fatal error C1001

以前工作中使用的 WinCE 平台的工程文件:编译正常,后续再次编译时不通过。出现如下的错误:
c1xx : fatal error C1023 unexpected error with pch, try rebuilding the pch
在网上查找,使用 EMET 软件关闭了 ASLR 后,不再出现上述错误。但还是有错误,错误变成:
VS2008 fatal error C1001: An internal error has occurred in the compiler.
再在网上查找无果,想想之前可以正常编译时与到目前可能对 Win10 系统的修改,认为最大的可能是因为编译 QT 静态链接库时增加的 LIB 和 INCLUDE 等环境变量。

于是,打开“环境变量”对话框,将增加的发下三项删除:
INCLUDE = D:\Qt\Qt5.3.1\Tools\mingw482_32\i686-w64-mingw32\include
LIB = D:\Qt\Qt5.3.1\Tools\mingw482_32\i686-w64-mingw32\lib
PATH = D:\Qt\Qt5.3.1\Tools\mingw482_32\bin

再对工程进行编译,还是错误。但 Rebuild 后,编译通过。

猜你喜欢

转载自blog.csdn.net/91program/article/details/51712510
今日推荐