You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Visual Studio 2022更新后Intel Fortran编译器集成失效求助

Visual Studio 17.9.6 下Intel Fortran集成修复方案
  • 彻底清理现有安装
    打开控制面板的「程序和功能」,卸载所有Intel oneAPI Base/HPC Toolkit相关条目,以及Intel Fortran Compiler组件;再打开Visual Studio Installer,移除所有Fortran相关的工作负载和组件,之后重启电脑。

  • 按正确顺序重新安装
    先安装Visual Studio 17.9.6,必须勾选「桌面开发使用C++」工作负载(Intel Fortran依赖该组件),别选预览版内容,安装完成后重启;
    运行Intel oneAPI HPC Toolkit安装包,正常情况下会自动识别VS IDE,如果还是提示找不到,手动指定VS的安装路径(比如默认的C:\Program Files\Microsoft Visual Studio\2022\Community,根据你的版本调整);
    安装时务必勾选「Intel Fortran Compiler」和「Intel oneAPI DPC++/C++ Compiler」,完成后再次重启电脑。

  • 手动注册Fortran集成到VS
    以管理员身份打开CMD,导航到Intel Fortran的bin目录(示例路径:C:\Program Files (x86)\Intel\oneAPI\compiler\latest\windows\bin\intel64);
    执行命令:ifortvars.bat intel64 vs2022;
    接着执行:devenv /setup,强制VS重新加载所有插件。

  • 验证修复效果
    打开Visual Studio,尝试创建新项目,搜索「Fortran」,能看到「Intel Fortran Console Application」等模板就说明集成成功;
    打开原有Fortran项目,右键项目选「属性」,确认「配置属性」里有Fortran相关设置项。

内容的提问来源于stack exchange,提问作者Kris Pe

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.25 12:03:16