Important: Please read the Qt Code of Conduct -

Linkage error while linking

  • Hi Everyone!

    There is the following problem: I use Qt4 and when I build my project using cmake, I get the following link error:

    @/usr/bin/ld: /usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/ undefined reference to symbol 'XShmPutImage'
    /usr/lib/i386-linux-gnu/ error adding symbols: DSO missing from command line
    collect2: error: ld returned 1 exit status@

    Adding Xext library to the target_link_libraries command doesn't solve this problem. I am using Ubuntu 13.10. This issue is reproducable with qt4.7.2 and with Kubuntu13.10

Log in to reply