I am a beginner on Dymola and I have a problem with the compiler to do simulation. I tried to install Visual Studio 2017 community (with the C++ development package). But when I try to verify the compiler I have an error :
Command cannot be executed.
Dymola cannot compile a simple C-program, dsmodel.c in current directory.
Please check compiler installation
with the following text :
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.
I tried to uninstall and reinstall Visual studio, install another version (2012, 2015 and 2019) but nothing works. Someone know what can be the problem and how can I fix it ?
Thanks,
Vverdet
Have you tried starting Visual Studio (without involving Dymola at all)? It might set up something during it's first start up.