Important: Please read the Qt Code of Conduct -

undefined reference to QX11Info::display()

  • Hi experts,
    My project add these in Ubuntu 14 include <QtX11Extras/qx11info_x11.h> <X11/Xlib.h>,after build it occured "/usr/lib/i386-linux-gnu/ error: error adding symbols: DSO missing from command line".(
    Then I add LIBS += -lX11 , i got these:
    error: undefined reference to `QX11Info::display()'

    error: undefined reference to `QX11Info::appRootWindow(int)'
    error: collect2: error: ld returned 1 exit status
    I can find the "" in usr/lib/i386***/ ,anything wrong ? Help!

    QT Version 5.3.2 on 32BIT

  • What version of Qt do you use? Is it 32 or 64 bit build?
    Take a look on this Question on SO

Log in to reply