gcc 4.9.1 in OS X Yosemite - gcc: warning: couldn’t understand kern.osversion ‘14.0.0'

前端 未结 10 1880
醉梦人生
醉梦人生 2020-12-13 19:18

I install OS X Yosemite and now i have a huge problem with gcc 4.9.1 compiler. I hope some one can help me please.

I try to compile my program and i have the warning

10条回答
  •  萌比男神i
    2020-12-13 19:50

    This was enough for me, and it doesn't require any symlink:

    export CC=/Applications/Xcode.app/Contents/Developer/usr/bin/gcc
    

    After that, just run the command as usual.

提交回复
热议问题