fatal error C1047 对象或库文件“....Win32Release xxx.obj”是使用比创建其他对象所用编译器旧的编译器创建的;请重新生成旧的对象和库[转]

转自:http://blog.csdn.net/nanjingligong/article/details/7814877

编译xxx动态库
vs2008已经打了sp1补丁
x64|release可以编译链接通过
win32|debug可以编译链接通过
win32|release编译链接不通过

原因:
引用库不一致,部分库使用的是带sp1补丁的编译器编译,部分是不带sp1补丁的编译器编译。
解决方法:
查找所有引用的库文件,确定所有库编译环境一致(第三方库较为麻烦)。
引用的库文件使用不同的编译器编译会导致该问题,要么所有的库使用没有sp1补丁的编译器编译,
要么使用有sp1补丁的编译器编译。


msdn解决方法
http://msdn.microsoft.com/en-us/library/ms173554(v=vs.80).aspx
Fatal Error C1047

Error Message
The object or library file 'file' was created with an older compiler than other objects; rebuild old objects and libraries


C1047 is caused when object files or libraries built with /LTCG are linked together, but where those object files or libraries are built with different versions of the Visual C++ toolset.

This can happen if you begin using a new version of the compiler but do not do a clean rebuild of existing object files or libraries.

To resolve C1047, rebuild all object files or libraries.

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值