Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Compilation problem

Compilation problem

Hi

I am beginner in OpenModelica.

I would like to install OpenModelica and simulate a sample model.
The same model simulates well in Dymola, but not in OpenModelica.

Error dialogue from OpenModelica is:
C:/Program Files//share/omc/scripts/Compile.bat Modelica.Blocks.Examples.PID_Controller gcc mingw64 parallel 4 0
PATH = "C:\Program Files\tools\msys\mingw64\bin;C:\Program Files\tools\msys\mingw64\bin\..\..\usr\bin;"
'C:/Program' is not recognized as an internal or external command,
operable program or batch file.
Compilation process failed. Exited with code 9009.

In Dymola, I have given this path to c-compiler:
C:/ProgramData/MATLAB/SupportPackages/R2016b/3P.instrset/mingw_492.instrset/bin/gcc.exe

In OpenModelica I don't find where to give any path to c-compiler. But I think the error message indicates that OpenModelica does not find any c-compiler.

bengt.jacobson@chalmers.se
useravatar
Offline
1 Posts

Re: Compilation problem

The OpenModelica installer tells you to not install into a path containing a space for good reason; it doesn't work if you do that.

There are 0 guests and 0 other users also viewing this topic