I am trying to use Visual Studio 2017 as a compiler in Dymola 2019. I have installed all the components in VS2017 for C++ (as far as i could find). But when i try to test compiler in Dymola, I get an error message as follows :
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.
I also tried with Visual Studio 2015, but it failed as well.
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.
I also couldnt find stdio.h in the VS2017 folder anywhere. But its located in a separeate folder WindowsSDK in program files.
The compiler test should work (at least from my past experience with dymola and VS, not sure if something got messed up with the newer versions of these tools)