【问题标题】:How can I fix the issue "rc.exe not found" in Visual Studio 2022? "如何解决 Visual Studio 2022 中的“找不到 rc.exe”问题? "
【发布时间】:2022-01-22 03:03:26
【问题描述】:

前提:我对 Fortran 编程和 Visual Studio 环境完全陌生。

我在 Microsoft Visual Studio Community 2022 中创建了一个非常简单的 Fortran 项目(源文件是 .f90 文件)。 代码如下:

program Sum_Main
    
    double precision :: a,b,c
    
    a = 100.d0
    b = 60.0d0
    c = a+b
    
    write(6,'(f8.2)') c
    
end program Sum_Main

我处于调试模式,当我编译项目时一切正常。但是当我按下“构建解决方案”时,我得到了错误:“rc.exe not found”。

我该如何解决?

这里是我安装的英特尔软件开发套件:

【问题讨论】:

  • 我强烈建议首先学习在命令行中使用编译器。只需很简单的序列ifort sum.f90 -o sum.exesum.exe 就足够了。
  • “rc.exe not found Intel Fortran”有很多 Google 搜索结果。大多数来自 Intel.support 论坛。例如。 community.intel.com/t5/Intel-Fortran-Compiler/… 您缺少一些 Visual C++ 组件。您是如何准确地安装 Visual Studio 和 Intel 编译器的?您是否使用了当前的 oneAPI 版本?您是否按照说明进行操作?
  • 谢谢@VladimirF!首先,我使用我的学术电子邮件安装了 Microsoft Visual Studio community 2022,在安装过程中我没有选择其他组件。然后我使用离线安装程序安装了英特尔 oneAPI 基础工具包和英特尔 oneAPI HPC 工具包(我添加了一张图片来显示英特尔编译器安装的网页)。

标签: visual-studio fortran intel-fortran visual-studio-2022 intel-oneapi


【解决方案1】:

问题解决了!我已经在工作负载组中重新安装了 C++ 构建工具!

【讨论】:

    猜你喜欢
    • 2023-01-16
    • 1970-01-01
    • 2022-06-22
    • 1970-01-01
    • 2021-12-23
    • 2022-01-09
    • 2022-01-16
    • 2023-02-12
    • 2019-05-05
    相关资源
    最近更新 更多