Error C1047: Object file created with an older compiler than other objects

前端 未结 11 842
遇见更好的自我
遇见更好的自我 2020-12-17 08:03

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:

fatal error C104

11条回答
  •  遥遥无期
    2020-12-17 08:44

    With reference to MSDN, this error The object or library file 'file' was created with an older compiler than other objects; rebuild old objects and libraries 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, rebuild all object files or libraries.

提交回复
热议问题