【问题标题】:How can I resolve Compiler's error "fatal error C1083" on Dymola?如何解决 Dymola 上的编译器错误“致命错误 C1083”?
【发布时间】:2020-10-06 14:04:01
【问题描述】:

我是 Dymola 的初学者,我在编译器进行模拟时遇到问题。我尝试安装 Visual Studio 2017 社区(使用 C++ 开发包)。但是当我尝试验证编译器时出现错误:

Command cannot be executed.
Dymola cannot compile a simple C-program, dsmodel.c in current directory.
Please check compiler installation

以下文字:

Compiling and linking the model (Visual C++). 

**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.9.27
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x86'
"Testing 32-bit compilation" 
dsmodel.c
dsmodel.c(1): fatal error C1083: Impossible d'ouvrir le fichier includeÿ: 'stdio.h'ÿ: No such file or directory
 
Error generating Dymosim.

我尝试卸载并重新安装 Visual Studio,安装另一个版本(2012、2015 和 2019),但没有任何效果。有人知道可能是什么问题,我该如何解决?

谢谢,

Vverdet

【问题讨论】:

标签: compiler-errors dymola


【解决方案1】:

您是否尝试过启动 Visual Studio(完全不涉及 Dymola)?它可能会在第一次启动时设置一些东西。

【讨论】:

  • 记住还要在 Visual Studio 中打开一个 C++ 文件/项目,因为某些安装甚至可能会延迟到那个时候。
  • 您好,感谢您的回复。是的,我尝试启动 VS(并打开一个 C++ 文件),但 Dymola 没有任何变化。
  • 所以您可以使用 VS 编译和运行 C++ 程序,但在 Dymola 中不起作用?联系技术支持。
【解决方案2】:

根据我之前的经验,你很可能弄乱了 Windows 设置中的 PATH 变量。

请检查系统环境变量列表中的PATH变量。确保以下目录位于 PATH 变量的值中:

  • %SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
  • %SystemRoot%\system32
  • %SystemRoot%
  • %SystemRoot%\System32\Wbem
  • \bin64

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-09-29
    • 2017-06-28
    • 1970-01-01
    • 2014-06-11
    • 1970-01-01
    • 1970-01-01
    • 2022-10-12
    • 2022-11-01
    相关资源
    最近更新 更多