When compiling with the experimental LLVM3.5 libraries link the following link errors appear:
/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'
The link command line was generated with llvm-config
, so why is this failing?
llvm-config
is not adding the link option for theTerminfo
library. AddTo link in the library and all should be well.
Add
llvm-config --system-libs
in link option