Compiling with Clang using Libc++ undefined references

前端 未结 3 1363
离开以前
离开以前 2020-12-14 16:11

The first couple are too long to reference. I get this error when I try to compile clang++ -stdlib=libc++ ../main.cc ... with clang and libc++ from the SVN.

3条回答
  •  北海茫月
    2020-12-14 16:45

    I believe libc++ doesn't support all exception functions yet. See the status page:

    http://libcxxabi.llvm.org/spec.html

    You could probably link against gnu's libstdc++

提交回复
热议问题