C Compiler
Select the compiler version to compile the Modelica code before a
virtual execution.
An unavailable compiler preference indicates that the compiler version
is not installed on the computer.
- Visual Studio 2012 (11.0)
- The default access path is used to locate this version.
- Visual Studio 2015 (14.0)
- The default access path is used to locate this version.
- Visual Studio 2017 (15)
- The default access path is used to locate this version.
- Visual Studio 2019 (16)
- The default access path is used to locate this version.
- Customized Visual Studio Path
- If the Visual Studio is not stored in the default path, select
this preference and browse for the access path.
- MinGW GCC Full Path
- Select this option to use MinGW GCC. After selection, you must
select 32/64-bit versions:
- 32-bit Select this option to use a
32-bit GCC compiler. If the MinGW executable is not stored in the default path,
browse for the full access path. For example:
C:\MinGW\bin\gcc.exe
.
- 64-bit Select this option to use a
64-bit GCC compiler. If the MinGW executable is not stored in the default path,
browse for the full access path. For example:
C:\MinGW64\bin\gcc.exe
.
Note:
You might need both compilers, for example, if you want to
export an FMU as both a 32-bit and a 64-bit executable.
By default,
Visual Studio 2015 (14.0) is selected.
Linux cross-compilation (WSL)
You can activate Linux cross-compilation.
- Enable WSL using: <path to wsl.exe>
- Select this option to activate Linux cross-compilation. If the "Windows
Subsystems for Linux" executable is not stored in the default path, browse
for the full access path.
By default, This preference is cleared.
Custom Options
You can enter compiler and linker options. These options are for
advanced users.
Verify Compiler Setup
Click
Test Compiler to test the selected compiler. See
Dymola Behavior Modeling
User's Guide: Reference Information: Compilers for more
information.
External C Function Compilation
When simulating a Modelica model using external C function
compilation, you need to enter the path to the directories containing your
files.
- External C functions directory path(s)
- Type the paths separated by a semicolon (";").
Note:
You can browse for the first path.
- External libraries directory path(s)
- Type the paths separated by a semicolon (";").
Note:
You can browse for the first path.
Note:
External C function compilation can be done without using these
preferences. See
Dymola Behavior Modeling
User's Guide: Managing Classes: Calling External C Functions in a
Function for more information about the alternative.