使用实验性LLVM3.5库链接进行编译时,会出现以下链接错误:
/usr/lib/llvm-3.5/lib/libLLVMSupport.a(Process.o):在
llvm::sys::Process::FileDescriptorHasColors(int)': (.text+0x85b): undefined reference to函数llvm::sys::Process::FileDescriptorHasColors(int)': (.text+0x87a): undefined reference tosetupterm'/usr/lib/llvm-3.5/lib/libLLVMSupport.a(Process.o )中:在函数 tigetnum'/ usr /lib/llvm-3.5/lib/libLLVMSupport.a(Process.o):在函数llvm::sys::Process::FileDescriptorHasColors(int)': (.text+0x888): undefined reference toset_curterm'/llvm::sys::Process::FileDescriptorHasColors(int)': (.text+0x890): undefined reference tousr/lib/llvm-3.5/lib/libLLVMSupport.a(Process.o )中:在函数 del_curterm'中
生成链接命令行llvm-config,为什么这会失败?
Sea*_*ean 17
llvm-config没有添加Terminfo库的链接选项.加
-ltinfo
Run Code Online (Sandbox Code Playgroud)
要在图书馆中链接,一切都应该很好.
| 归档时间: |
|
| 查看次数: |
5289 次 |
| 最近记录: |