Pierde Los Modales 2023-03-16 18:04 采纳率: 76.9%
浏览 24
已结题

vscode配置Fortran报错

已配置launch.json和tasks.json


PS C:\Users\16134\Desktop\约化重力
> cd "c:\Users\16134\Desktop\约化重力\" ; if ($?) { gfortran hello.f90 -o hello } ; if ($?) { .\hello }
gfortran : The term 'gfortran' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:47
+ cd "c:\Users\16134\Desktop\约化重力\" ; if ($?) { gfortran hello.f90 -o h ...
+                                               ~~~~~~~~   
 + CategoryInfo          : ObjectNotFound: (gfortran:String) [], CommandNotFoundException    
+ FullyQualifiedErrorId : CommandNotFoundException
  • 写回答

3条回答 默认 最新

  • 地球屋里老师 2023-03-17 16:53
    关注

    看起来是 gfortran 未被识别。确认一下:1、是否安装gfortran;2、是否正确配置环境变量。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

问题事件

  • 系统已结题 3月28日
  • 已采纳回答 3月20日
  • 创建了问题 3月16日

悬赏问题

  • ¥15 smptlib使用465端口发送邮件失败
  • ¥200 总是报错,能帮助用python实现程序实现高斯正反算吗?有偿
  • ¥15 对于squad数据集的基于bert模型的微调
  • ¥15 为什么我运行这个网络会出现以下报错?CRNN神经网络
  • ¥20 steam下载游戏占用内存
  • ¥15 CST保存项目时失败
  • ¥15 树莓派5怎么用camera module 3啊
  • ¥20 java在应用程序里获取不到扬声器设备
  • ¥15 echarts动画效果的问题,请帮我添加一个动画。不要机器人回答。
  • ¥15 Attention is all you need 的代码运行