Can't compile C program on a Mac after upgrade to Mojave

前端 未结 15 1007
陌清茗
陌清茗 2020-11-22 06:58

I have used the gcc command on the terminal to compile C programs but all of a sudden, after an update to my Mac\'s OS (to macOS 10.14 Mojave, and XCode 10.0), I started rec

15条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-22 07:43

    I've found great solution and explanation at this GitHub comment. The trick:

    make SDKROOT=`xcrun --show-sdk-path` MACOSX_DEPLOYMENT_TARGET=
    

    Did the job.

提交回复
热议问题