天天看点

出现undefined reference to `forkpty' 错误解决方法

出现undefined reference to `forkpty' 错误解决方法  

2009-02-04 09:14:23|  分类: C++|举报|字号 订阅

出现undefined reference to `forkpty' 错误解决方法
出现undefined reference to `forkpty' 错误解决方法

下载LOFTER客户端

出错提示如下:

/usr/lib/../lib/libpython2.5.so(posixmodule.o): In function `posix_forkpty':

(.text+0x32ed): undefined reference to `forkpty'

/usr/lib/../lib/libpython2.5.so(posixmodule.o): In function `posix_openpty':

(.text+0x336c): undefined reference to `openpty'

collect2: ld returned 1 exit status

解决方法:

添加 -lutil