编译静态expect现undefined reference to `openpty' 错误解决方法
错误提示如下:
...
gcc /
-pipe -O2 -fomit-frame-pointer -Wall /
-Wl,--export-dynamic /
-o expect exp_main_exp.o /
-L/work/pkgs/expect5.45 -lexpect5.45 /
-L/work/pkgs/tcl8.5.9/unix -ltcl8.5 /
-ldl -lieee -lm /
-Wl,-rpath,/usr/local/lib /
-Wl,-rpath,/usr/local/lib/expect5.45
/work/pkgs/expect5.45/libexpect5.45.a(pty_termios.o): In function `exp_getptymaster':
pty_termios.c:(.text+0x2f5): undefined reference to `openpty'
collect2: ld returned 1 exit status
make: *** [expect] Error 1
解决方法:
添加util链接库 -lutil
编译静态expect现undefined reference to `openpty' 错误解决方法相关推荐
- Mingw-W64编译Windows程序提示:undefined reference to `__imp_GetStockObject' 的解决方法
gcc(Mingw-W64)编译windows程序,提示undefined reference to `__imp_GetStockObject' 的解决方法:加上-mwindows,问题解决. #i ...
- linux 链接库文件出现“undefined reference to 问题的解决方法
最近在Linux下编程发现一个诡异的现象,就是在链接一个静态库的时候总是报错,类似下面这样的错误: (.text+0x13): undefined reference to `func' 关于unde ...
- linux中sqlite3编译时出错,Sqlite3 交叉编译 undefined reference to `fdatasync' 错误解决
交叉编译sqlite到Android平台, Android.mk 文件内容如下: LOCAL_PATH:= $(call my-dir) INCDIR:=/home/android-ndk-r6b/s ...
- QT出现“undefined reference to `vtable for’”解决方法
Qt 中新建类时,若需要使用信号与槽机制,必须显式启用Q_OBJECT宏.利用QT IDE添加并创建新的类时,在编译过程中会出现以下报错: undefined reference to `vtable ...
- mingw报未定义引用gdi32中函数,undefined reference to `__imp_CreateCompatibleDC‘错误解决办法
编译pdfium-master时,mingw老是报下面这些错误 PS D:\projectcode\PDFium-master\biuld> make fx_win32_c_allcompili ...
- undefined reference to `__gxx_personality_sj0'错误解决办法
在交叉编译一个.cpp库时,出现如下错误: undefined reference to `__gxx_personality_sj0' undefined reference to `operato ...
- ruby环境sass编译中文出现Syntax error: Invalid GBK character错误解决方法
sass文件编译时候使用ruby环境,无论是界面化的koala工具还是命令行模式的都无法通过,真是令人烦恼. 容易出现中文注释时候无法编译通过,或者出现乱码,找了几天的解决方法终于解决了. 这个问题的 ...
- C++ CMake使用JSONCPP出现undefined reference to json::value解决方法
这个问题是没用引用对于的库.动态库没引用. 如果:1.安装JSONCPP是使用下面语句系统自动安装的. sudo apt-get install libjsoncpp-dev 系统会自动安装,静态库在 ...
- linux apr文件解压失败,Apache编译安装提示configure: error: APR not found错误解决方法...
在配置Apache的时候,出现configure: error: APR not found错误 原因是缺少一些依赖包,安装这些依赖包就行了 下载依赖包,注意我这里下载的与参考链接上的有些不同,安装上 ...
- 编译tslib1.4出现错误undefined reference to rpl_malloc错误
编译tslib1.4时可能会出现错误undefined reference to rpl_malloc这个错误 解决方法是,在tslib目录下找到config.h.in这个文件,打开,注释掉#unde ...
最新文章
- 【机器学习基础】用Python构建和可视化决策树
- Spark2.11 两种流操作 + Kafka
- java文件复制速度_java中文件复制得速度测试
- FlashMapManager
- maven 常用的插件
- Client Side Cache 和 Server Side Cache 的区别
- Codeforces Round #420 E
- 使用C语言进行面向对象的开发--GObject入门[5]
- UVa 11468 (AC自动机 概率DP) Substring
- android Activity 之间传递复杂对象
- 福州大学软件工程1916|W班 第10、11次作业成绩排名
- utilities —— 常见宏定义
- 在qt中使用QSplitter设置初始比例setStretchFactor失效的解决方法
- Thymeleaf 用法
- 【渝粤教育】国家开放大学2018年秋季 2780T遗传与育种 参考试题
- You Don't Have To Say Goodbye
- 2017国民行业分类sql-存储过程_存储函数-MySQL
- 桂林老兵php,桂林老兵的SQLSERVER高级注入技巧
- 阿里云ECS节省计划重磅发布 比包年包月灵活,比按量付费划算,最高节省76%费用
- 怎么修复网站漏洞 骑士cms的漏洞修复方案
热门文章
- [JNI] 开发基础(4)函数指针及指针函数
- js事件循环机制-宏任务微任务
- nginx基于域名的虚拟主机配置实战
- 单服务器部署rancher_基于CentOS 7部署Rancher 2.0
- mysql表关联查询都有什么方式_Mysql数据库多表联合查询有几种方法?
- CMU 15-213 Introduction to Computer Systems学习笔记(5) Machine-Level Programming-Control
- easyswoole数据库连接池_Swoole Redis 连接池的实现
- Nginx系列(5):Web服务器分析之Linux I/O(理论中)
- IAR for MSP430 关于添加自定义头文件的两种方法【转】
- HDU 1260: Tickets