Undefined reference to symbol dlcose@@GLIBC

Nicola
2013-05-14
2013-07-15
  • Nicola
    Nicola
    2013-05-14

    Hi everybody,
    trying to compile sqlite browser source code, after having issued qmake I got this error:

    /usr/bin/ld: .obj/sqlite3.o: undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
    /usr/bin/ld: note: 'dlclose@@GLIBC_2.2.5' is defined in DSO /lib64/libdl.so.2 so try adding it to the linker command line
    /lib64/libdl.so.2: could not read symbols: Invalid operation
    collect2: error: ld returned 1 exit status
    make: *** [sqlitebrowser] Error 1
    

    Using Qt version 4.8.4 in /usr/lib64 on Fedora 18
    Any solution?
    Thank you

     
  • tanquetin
    tanquetin
    2013-07-15

    try adding this to "sqlitebrowser.pro":

    LIBS += -ldl