Linker for Clang?

前端 未结 3 2018
醉话见心
醉话见心 2021-01-01 19:05

Which linker do I use for clang? If I use clang or ld as a linker, I get massive amounts of errors as if I didn\'t link with the standard library.

g++

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-01 19:22

    Followup: it's now 2016, and llvm has made some steady progress on their own linker. It's called "lld", and the website is here. It works fine to create i386 and x86_64 binaries, while work is ongoing to target other systems.

    This should remove the dependency on GNU tools for BSDs, once it is considered stable enough.

提交回复
热议问题