首页 > 解决方案 > VS Studio 编译 Fortran 代码时出现编译错误

问题描述

在 VS Studio 中编译 Fortran 代码时出现此错误:

warning #31001: The dll for reading and writing the pdb (for example, mspdb110.dll) could not be found on your path.

我还希望在项目属性中更改基本平台工具集,但在 VS 2019 IDE 中我找不到这个选项来编辑它。我正在使用 Intel Compiler 2021。我也尝试将我的 VS Studio 升级到最新版本,但问题仍然存在。请告诉如何解决这个问题。

标签: visual-studiocompiler-errorsfortrancompiler-warnings

解决方案


此消息表示您的 Visual Studio 配置错误。确保您已安装 Visual Studio 的“Desktop Development for C++”和“Windows 10 SDK”组件(请参阅https://www.intel.com/content/www/us/en/developer/articles/guide/installing -microsoft-visual-studio-2019-for-use-with-intel-compilers.html)您可能需要卸载英特尔编译器和 Visual Studio,然后重新安装。


推荐阅读