macos - 在 Mac 上使用 Visual Studio Code 编译的 Fortran 导致“找不到 -lSystem 的库”
问题描述
我试图通过 Visual Studio 在 Fortran 中编译我的代码。我编写了一个简单的示例。
program fortran
implicit none
character*20 :: name
print*,"what is your name"
read *, name
print *,"Hello ", name
end program fortran
但它无法在我的 Mac 终端上执行。错误信息是:'
ld: library not found for -lSystem
collect2: error: ld returned 1 exit status
我还注意到,在 VS 的右下角,它显示the active environment is not selected
. 我想也许它与这个问题有关?另外,我还下载了 intelapi 工具包。
那我现在该怎么办?
解决方案
推荐阅读
- vb6 - 虚假的“无法加载控制,未找到许可证”错误?
- autodesk-forge - 如何使用 LMV Toolkit 规范或 Autodesk 材质库材质显示非光照材质 + 纹理?
- c - 如何忽略输入中的 '\n' 字符
- c - 这在 C 中到底意味着什么?
- python - python matplotlib散点图颜色错误
- sql-server - 通过 XML 将 SQL 列转换为 CSV 的问题
- powershell - 访问受密码保护的网络共享(双/第二跳限制)
- clockify - GET 方法 Clockify API 遇到问题
- google-tag-manager - 我应该使用工作箱运行时缓存 staleWhileRevalidate 来缓存 gtm.js 吗?
- javascript - 播放多个音轨