StupidBeauty
Read times:685Posted at:Sat May 5 21:11:51 2012
- no title specified

转载:关于调用系统XInitThreads问题

遇到“undefined reference to `XInitThreads'”,并且妳确认自己已经安装咯libX11开发包的话,则说明妳可能是忘记链接到libX11库文件咯。给GCC加上“-lX11”参数链接到libX11。

http://bbs.chinaunix.net/thread-1978281-1-1.html

亮点:

原帖由 lee51525125 于 2009-5-25 15:45 发表
环境debain linux2.6.18 i686;
我编译helix client它报错是 undefined reference to `XInitThreads'
他调用了系统的XInitThreads()
以下是<x11/xilb.h>里
XInitThreads()原型
/* multithread routines */
extern Status XInitThreads(
void
);
里面什么都没有...
这是为什么需要装什么开发包吗?或什么so文件吗?


既然有头文件,那么开发包就已经安装了,但是在编译时需要加 -lX11 链接 libX11

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4