5
我试图编译这里使错误:未知的选项:--gc截面
https://github.com/admesh/admesh
admesh发现我下面thier安装基本上是配置并做出指示。但是,当我在我的Mac上运行make命令,其给出以下错误,
MacBook-Pro:admesh mk$ make
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-am
CC connect.lo
CC normals.lo
CC shared.lo
CC stlinit.lo
CC stl_io.lo
CC util.lo
CCLD libadmesh.la
ld: unknown option: --gc-sections
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [libadmesh.la] Error 1
make: *** [all] Error 2
MacBook-Pro:admesh mk$ clang -v
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.3.0
Thread model: posix
谁能帮我解决这个错误。
我猜''gc-sections'涉及不再支持的垃圾收集。您可以尝试删除'Makefile'中的选项,但可能代码在非垃圾收集环境中不起作用。也可以通过使用'-mmacosx-version-min = 10.X'指定较低版本的OSX来修复。 – trojanfoe
@trojanfoe,你能指导我在哪里设置这个mmacosx-version-min = 10.X?我的意思是在make文件或命令行中? –
看看下面的SO问题,它看起来像在10.8中被弃用,所以试试10.7。不过,苹果可能已经删除了它的运行时支持。 http://stackoverflow.com/questions/5466899/xcode-4-garbage-collection-removed – trojanfoe