Unrecognized Command Line Option '-stdlib=libc++' with MacPorts gcc48

前端 未结 1 446
终归单人心
终归单人心 2021-02-13 12:29

Context

I\'m trying to compile the package \"root_numpy\" which is a link between the scientific analysis software \"root\" and the python package \"num

1条回答
  •  [愿得一人]
    2021-02-13 13:06

    -stdlib=libc++ is a Clang (not GCC) option and tells clang to use LLVM libc++ standard library (which is what Clang uses) rather than GNU libstdc++ (which is what GCC uses).

    Since you got linking errors, it seems likely that other packages you are using were compiled with clang and libc++, which is not ABI compatible with GCC's libstdc++ (except for some low-level stuff). So you'll need to compile the package with clang and libc++ as well. Apple's Xcode comes with clang (which is probably what you'd want to use for this), and MacPorts also supplies a number of clang distributions.

    0 讨论(0)
提交回复
热议问题