LLVM 3.5链接失败 [英] LLVM 3.5 fails to link
问题描述
使用实验性LLVM3.5库链接进行编译时,出现以下链接错误:
When compiling with the experimental LLVM3.5 libraries link the following link errors appear:
/usr/lib/llvm-3.5/lib/libLLVMSupport.a(Process.o):在函数中
llvm::sys::Process::FileDescriptorHasColors(int)': (.text+0x85b): undefined reference to
setupterm' /usr/lib/llvm-3.5/lib/libLLVMSupport.a(Process.o):在函数中llvm::sys::Process::FileDescriptorHasColors(int)': (.text+0x87a): undefined reference to
tigetnum' /usr/lib/llvm-3.5/lib/libLLVMSupport.a(Process.o):在函数中llvm::sys::Process::FileDescriptorHasColors(int)': (.text+0x888): undefined reference to
set_curterm' /usr/lib/llvm-3.5/lib/libLLVMSupport.a(Process.o):在函数中llvm::sys::Process::FileDescriptorHasColors(int)': (.text+0x890): undefined reference to
del_curterm'
/usr/lib/llvm-3.5/lib/libLLVMSupport.a(Process.o): In function
llvm::sys::Process::FileDescriptorHasColors(int)': (.text+0x85b): undefined reference to
setupterm' /usr/lib/llvm-3.5/lib/libLLVMSupport.a(Process.o): In functionllvm::sys::Process::FileDescriptorHasColors(int)': (.text+0x87a): undefined reference to
tigetnum' /usr/lib/llvm-3.5/lib/libLLVMSupport.a(Process.o): In functionllvm::sys::Process::FileDescriptorHasColors(int)': (.text+0x888): undefined reference to
set_curterm' /usr/lib/llvm-3.5/lib/libLLVMSupport.a(Process.o): In functionllvm::sys::Process::FileDescriptorHasColors(int)': (.text+0x890): undefined reference to
del_curterm'
链接命令行是用llvm-config
生成的,为什么会失败?
The link command line was generated with llvm-config
, so why is this failing?
推荐答案
llvm-config
没有为Terminfo
库添加链接选项.添加
llvm-config
is not adding the link option for the Terminfo
library. Add
-ltinfo
要链接到库中,一切都应该很好.
To link in the library and all should be well.
这篇关于LLVM 3.5链接失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!