LLVM 3.5无法链接

 阳光-沙滩男人 发布于 2023-01-30 11:00

使用实验性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,为什么这会失败?

2 个回答
  • llvm-config没有添加Terminfo库的链接选项.加

    -ltinfo
    

    要在图书馆中链接,一切都应该很好.

    2023-01-30 11:01 回答
  • 添加llvm-config --system-libs链接选项

    2023-01-30 11:01 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有