[Qt-interest] XQueryTree was not declared in this scope
Pete Black
theblackpeter at gmail.com
Tue Feb 24 04:45:43 CET 2009
Wing Wong wrote:
> Hi,
>
>
>
> I am trying to use some native X APIs (e.g. XQueryTree) inside my Qt
> application on Linux, but the compiler gave me an error saying
>
> “XQueryTree was not declared in this scope”. How can I resolve this issue?
>
>
>
>
>
>
>
> Regards,
>
>
>
>
>
> Wing
>
>
>
>
> ------------------------------------------------------------------------
> Confidentiality Notice.
> This message may contain information that is confidential or otherwise
> protected from disclosure. If you are not the intended recipient, you
> are hereby notified that any use, disclosure, dissemination,
> distribution, or copying of this message, or any attachments, is
> strictly prohibited. If you have received this message in error, please
> advise the sender by reply e-mail, and delete the message and any
> attachments. Thank you.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
Hi Wing,
Try including <X11/Xlib.h> and making sure the compiler and linker has
the proper paths. I have -I/usr/X11R6/include passed to the compiler and
-L/usr/X11R6/lib64 and -lX11 to the linker. You might have a different
setup off course.
Best,
Pete
More information about the Qt-interest-old
mailing list