not the pdb file that was used when this precompiled header wascreated

Hi Tommy,
> I am working on a Managed C++ project and I get the following error:
>
> TestThread.cpp(3) : error C2859: c:/projects/ProjectName/debug/vc70.pdb
> is not the pdb file that was used when this precompiled header was
> created, recreate the precompiled header.
>
> Why would I get this error? How do I rebuild the precompiled header?
> Clean Solution, Rebuild Solution, don't help.
>
> If I manually delete the vc70.pdb, it doesn't seem to recompile. I've
> also tried manually compiling stdafx.cpp. I get:
>
> fatal error C1083: Cannot open precompiled header file:
> 'Debug/ProjectName.pch': No such file or directory
>
> Any help is appreciated.
>
> Managed C++ gets more and more frustrating every day.


This should not be caused, I think, by your use of MC++. Seems like your
project settings got hosed somehow. First, try if you like to disable
precompiled headers (it's in the compiler options in the project settings).
See if that helps at first. If it does, then try setting your settings for
stdafx.cpp to "Create precompiled Header" (/Yc) with stdafx.h, and then set
the rest of the files to "Use Precompiled Header" (/Yu) with stdafx.h. See
if that helps

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值