【发布时间】:2017-11-29 09:49:00
【问题描述】:
我继承了一个为在 Visual Studio 2010 / Intel 2013 上运行而创建的 Visual Studio 项目,它是 C++ 和 Fortran 项目的组合。我的任务是进行必要的修改,以使项目能够使用 Visual Studio 2015 和 Intel Fortran 2017 构建和运行。我已经在调试模式下编译、构建和运行所有内容,但我无法让它在发布中构建模式。对于所有引用 C++ .lib 项目的 Fortran 项目,我收到以下消息:
MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
fatal error C1905: Front end and back end not compatible (must target same processor).
LINK : fatal error LNK1257: code generation failed
我已经检查并再次检查了配置,所有项目都在为 Win32 平台构建。
在网上搜索,我了解到这可能是由于不同项目的优化设置不同。我玩过优化设置,要么什么都不做,要么导致库冲突。我在网上搜索过,试图解决这些冲突,但似乎找不到一个我可以实施的足够直接的解决方案。
该项目仍可在 Visual Studio 2010 中以调试和发布模式构建和运行。我什至尝试使用从 Visual Studio 2010 创建的 .lib 构建新的 Fortran 版本并得到相同的错误。
新版本的 Visual Studio 和 Intel Fortran 是否存在本质上不同的不兼容之处?
【问题讨论】:
标签: c++ visual-studio-2015 linker-errors intel-fortran