首页 > 其他 > 详细

qt 与 x11 头文件同时引用

时间:2020-03-31 19:22:54      阅读:117      评论:0      收藏:0      [点我收藏+]

With the following includes:

#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>

I needed to undef a few definitions:

#undef Bool
#undef CursorShape
#undef Expose
#undef KeyPress
#undef KeyRelease
#undef FocusIn
#undef FocusOut
#undef FontChange
#undef None
#undef Status
#undef Unsorted

Of course add LIBS += -lX11 in your .pro file, and you are good to go!

qt 与 x11 头文件同时引用

原文:https://www.cnblogs.com/bigben0123/p/12606767.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!