I am trying to compile a C ++ program on Linux Mint 17 using Qt 5.3.0. I added the following line to the .pro file:
QMAKE_LFLAGS += -ldl -fPIC
My program uses dlsym, but the linker cannot find it. Here is the error message:
undefined reference to symbol 'dlsym@@GLIBC_2.2.5'
How can I link my program?
source
share