在win2000下我编了一个程序myprogram,原来好好的,可以重复进行rebuilt all操作,可以有一次不知道怎么回事就不能rebuild all了,程序总提示:
fatal error C1083: Cannot open precompiled header file: 'Debug/myprogram.pch': No such file or directory.
我自己也不清楚到底进行了怎样的改动才导致这样的错误!请各位大侠帮忙啊!好再我还有个备份,我只好把备份文件Debug下的myprogram.pch文件复制到现在编译的目录下,不能再用rebuild all了,就直接执行程序,这样程序又能运行了。但只要我一rebuild all程序马上又提示:打不开预编译头文件,找不到pch文件了。
fatal error C1083: Cannot open precompiled header file: 'Debug/myprogram.pch': No such file or directory.
我自己也不清楚到底进行了怎样的改动才导致这样的错误!请各位大侠帮忙啊!好再我还有个备份,我只好把备份文件Debug下的myprogram.pch文件复制到现在编译的目录下,不能再用rebuild all了,就直接执行程序,这样程序又能运行了。但只要我一rebuild all程序马上又提示:打不开预编译头文件,找不到pch文件了。
OK!
/Fp"Debug/xxxx.pch" /Yu"stdafx.h"
就可以了(即不使用预编译)。
LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /INCREMENTAL:NO specification
LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other libs; use /NODEFAULTLIB:library
2:你连接的库的版本不同,如同时连接单线程和多线程库等。