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 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥16 mybatis的代理对象无法通过@Autowired装填
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示
  • ¥15 求三国群英传pl国战时间的修改方法
  • ¥15 matlab代码代写,需写出详细代码,代价私