Linker for Clang?

前端 未结 3 2033
醉话见心
醉话见心 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:08

    You do not have to use llvm's link editor. I will avoid getting into the technical details, but, in short, you will need to have a typical UNIX link editor available to use Clang at this time (read: GNU ld or Sun ld). Even llvm-ld uses the underlying platform's linker to link native binaries.

提交回复
热议问题