Issue with executing a.out file (C++) MacOS Sierra 10.12.1

前端 未结 1 1228
春和景丽
春和景丽 2021-01-13 13:45

I just updated to Sierra and it seems my compiler fell apart for some reason.

The code I wrote worked fine before the update, so I\'m sure its not an issue there but

相关标签:
1条回答
  • 2021-01-13 14:22

    There are multiple options:

    • Try installing missing tools (if any) using xcode-select --install and try compiling. If that fails,
    • Try running gcc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk source.cpp. This obviously assuming you have SDK installed in that location. Replace with whatever location exist there.
    0 讨论(0)
提交回复
热议问题