出現undefined reference to `forkpty' 錯誤解決方法
2009-02-04 09:14:23| 分類: C++|舉報|字号 訂閱
下載下傳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