Linux c++ error: undefined reference to ‘dlopen’

You have to link against libdl, add

-ldl

to your linker options

Leave a Comment