Wolfram Computation Meets Knowledge

How do I select and configure C++ compilers manually on macOS?

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

  1. To get to the Preferences menu, navigate to System Modeler ► Preferences.
  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 System Modeler:
    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. Click Browse, and a dialog to pick the folder containing the specific compiler executable will appear.
    4. Select the required file in the dialog and click Open. Possible locations include:


      • For Clang++:
        /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++

      • For macOS platform SDK:
        /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk

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

    5. Click “Verify Compiler” to test whether System Modeler 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.
该文档是否有帮助?

任何建议?

非常感谢您的反馈!

提交

联系支持团队

从账单到产品激活,以及任何技术相关内容,无论您遇到任何问题,我们都在此为您提供帮助。

1-800-WOLFRAM (+1-217-398-0700 美国境外用户)

客服支持

周一至周五
8am–5pm 美国中部时区

  • 产品注册或激活
  • 预售信息和订单
  • 安装帮助和首次启动

高级技术支持 (面向特定用户)

周一至周四
8am–7pm 美国中部时区

周五
8:30–10am & 11am–5pm 美国中部时区

  • 优先技术支持
  • Wolfram 专家助理专员
  • Wolfram 语言编程帮助
  • 高级安装支持