SystemModeler allows you to compile models with the C++ compiler of your choice. You can select among automatically detected and manually configured compiler installations.

  1. To get to the Options menu, navigate to Tools ► Options. On Mac, navigate to SystemModeler ► Preferences. (Shown below in Windows.)
  2. Select Global ► Compiler.
  3. To choose an already configured compiler, select the compiler identifier in the “Select compiler” drop-down menu.
  4. To instead add a new compiler configuration to SystemModeler:
    1. Select Custom in the “Select compiler” drop-down menu.
    2. Select the name of the supported compiler of your choice from the “Compiler” drop-down menu.
    3. If the “Version” drop-down menu becomes active, select your compiler’s version from the given choices.
    4. Click Browse, and a dialog to pick the folder containing the specific compiler executable will appear.
    5. Select the required file in the dialog and click Open. Possible locations include:

      Windows

      • For Visual Studio 2017′s VsDevCmd.bat:
        C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\VsDevCmd.bat
      • For Visual Studio 2015′s vcvarsall.bat:
        C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat

      Mac

      • For Clang++:
        /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
      • For Mac OS X platform SDK:
        /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
      • Linux

        • For G++:
          /usr/bin/g++

        The compiler executable’s file path now appears in the “Path to <EXECUTABLE>” field.

      • Click Verify to test whether SystemModeler detects the newly configured compiler correctly. The detection is successful if the Compiler verification succeeded dialog appears.
  5. Click Apply to save the settings.
  6. Click OK to close the dialog.