Я пытаюсь использовать 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.
Я также не смог найти stdio.h в папке VS2017 в любом месте.Но он находится в отдельной папке WindowsSDK в программных файлах.
Тест компилятора должен работать (по крайней мере, из моего прошлого опыта работы с dymola и VS, не уверен, что что-то напутало с более новыми версиями этих инструментов)