clang linker problem

前端 未结 4 788
北荒
北荒 2021-01-04 20:18

I just tried out the latest llvm and clang trunk versions. They compiled without a single warning out of the box but I\'m having trouble linking a hello world example. My Co

4条回答
  •  天命终不由人
    2021-01-04 21:04

    run:

    clang -v
    

    In my example output is:

    clang version 3.0 (tags/RELEASE_30/final)
    Target: armv7l-unknown-linux-gnueabi
    Thread model: posix
    

    Run the following as root to use the target to create missing directory as a link:

    ln -s /lib/arm-linux-gnueabi /lib/armv7l-unknown-linux-gnueabi
    ln -s /usr/lib/arm-linux-gnueabi /usr/lib/armv7l-unknown-linux-gnueabi
    ldconfig
    

提交回复
热议问题