How can I resolve Compiler's error "fatal error C1083" on Dymola?

1k Views Asked by At

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

2

There are 2 best solutions below

3
On

Have you tried starting Visual Studio (without involving Dymola at all)? It might set up something during it's first start up.

0
On

Based on my previous experience, it is likely that you messed up the PATH variables in Windows Settings.

Please check the PATH variable in the list of system environment variables. Make sure the following directories are in the value of PATH variable:

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