错误C1047:使用比其他对象更旧的编译器创建的对象文件 [英] Error C1047: Object file created with an older compiler than other objects

查看:1738
本文介绍了错误C1047:使用比其他对象更旧的编译器创建的对象文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目,我正在C + +在Visual Studio 2008 SP1在Windows 7上的版本模式下构建,当我构建它我不断得到:

I have a project that I'm building in C++ in Release mode in Visual Studio 2008 SP1 on Windows 7 and when I build it I keep getting:


致命错误C1047:对象或
库文件'.\Release\obobar.obj'
是使用旧编译器
创建的,而不是其他对象;重建旧的
对象和库。

fatal error C1047: The object or library file '.\Release\foobar.obj' was created with an older compiler than other objects; rebuild old objects and libraries.

链接时出错。

我已经尝试删除特定的对象文件和重建,但不能解决它。我也试过吹走整个发布版本文件夹和重建,但也没有解决它。任何想法?

I've tried deleting the specific object file and rebuilding but that doesn't fix it. I've also tried blowing away the whole release build folder and rebuilding but that also didn't fix it. Any ideas?

推荐答案

我建议重新安装VS 2008 SP1。您是否在此期间安装了不同的VS(例如VS Express)?这可能会影响现有的VS安装。

I would suggest reinstalling VS 2008 SP1. Have you installed a different VS (e.g. VS Express) in the meantime? This is known to cause interference with an existing VS installation.

您可以尝试通过运行 cl.exe link.exe

You could try checking the compiler and linker versions by running cl.exe and link.exe from the Visual Studio command prompt.

这篇关于错误C1047:使用比其他对象更旧的编译器创建的对象文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆