LLVM 3.5链接失败 [英] LLVM 3.5 fails to link

查看:205
本文介绍了LLVM 3.5链接失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用实验性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 tosetupterm' /usr/lib/llvm-3.5/lib/libLLVMSupport.a(Process.o): In function llvm::sys::Process::FileDescriptorHasColors(int)': (.text+0x87a): undefined reference totigetnum' /usr/lib/llvm-3.5/lib/libLLVMSupport.a(Process.o): In function llvm::sys::Process::FileDescriptorHasColors(int)': (.text+0x888): undefined reference toset_curterm' /usr/lib/llvm-3.5/lib/libLLVMSupport.a(Process.o): In function llvm::sys::Process::FileDescriptorHasColors(int)': (.text+0x890): undefined reference todel_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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆