qt4ubuntu-9.04

Error while compiling in Qt (Ubuntu)


I am getting the following error while compiling a sample program in Qt 4.5 in Ubuntu OS.

/usr/bin/ld: cannot find -lgthread-2.0
collect2: ld returned 1 exit status

Solution

  • I found the solution, I installed the library libqt4-dev by typing the command

    sudo apt-get install libqt4-dev
    

    and the problem got solved.