only g++/linux - undefined reference to symbol 'dlclose@@GLIBC_2.2.5'

I solved this issue, and posting a note here in case someone finds themselves on this kind of error.

I was compiling my application using gcc 10.2 , but some 3rd party libraries were linking against a library that was build in gcc 4.3. One of the compiler flags I had it’s:

add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0)

That statement causes link errors as documented on this link. Once I removed that definition, the program compiled successfully.