【发布时间】:2016-01-07 12:03:41
【问题描述】:
我运行 Mac OSX El Capitan,我通过 Homebrew gcc 版本 5.3.0 安装。
我想安装 pyopencl(但据我了解这并不重要)并且在运行以下命令时:
gcc -fno-strict-aliasing -fwrapv -Wall -O3 -DNDEBUG -DPYGPU_PACKAGE=pyopencl -DPYGPU_PYOPENCL=1 -Isrc/c_wrapper/ -I/Users/earendilllock/anaconda/include/python2.7 -c build/temp .macosx-10.5-x86_64-2.7/pyopencl._cffi.cpp -o build/temp.macosx-10.5-x86_64-2.7/build/temp.macosx-10.5-x86_64-2.7/pyopencl._cffi.o -std=c+ +0x -stdlib=libc++ -mmacosx-version-min=10.7 -arch i386 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
我得到以下错误:
gcc: error: unrecognized command line option '-stdlib=libc++'
error: command 'gcc' failed with exit status 1
make: *** [all] Error 1
我无法通过 Google 找到解决该问题的解决方案,但我希望它存在。
【问题讨论】:
标签: c++ gcc homebrew std osx-elcapitan