【发布时间】:2019-04-30 13:33:39
【问题描述】:
我正在尝试将 Visual Studio 2017 用作 Dymola 2019 中的编译器。我已经在 VS2017 中为 C++ 安装了所有组件(据我所知)。但是当我尝试在 Dymola 中测试编译器时,我收到如下错误消息:
Compiling and linking the model (Visual C++).
**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.9.11
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x86'
"Testing 32-bit compilation"
dsmodel.c
dsmodel.c(1): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
Error generating Dymosim.
我也尝试过使用 Visual Studio 2015,但也失败了。
Compiling and linking the model (Visual C++).
ERROR: Cannot determine the location of the VS Common Tools folder.
"Testing 32-bit compilation"
'cl' is not recognized as an internal or external command,
operable program or batch file.
Error generating Dymosim.
我也无法在任何地方的 VS2017 文件夹中找到 stdio.h。但它位于程序文件中的单独文件夹 WindowsSDK 中。
编译器测试应该可以工作(至少从我过去使用 dymola 和 VS 的经验来看,不确定这些工具的新版本是否搞砸了)
【问题讨论】:
标签: c++ compiler-errors visual-studio-2017 dymola