I try to load a dynamic library with dlopen. The code in the lib should call a function inside the executeable (compiled with flag -rdynamic).
dlopen gives this error:
undefined symbol:
_Z10vGnssTraceNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEhS4_
If I look at the exported symbols of my executeable with nm, I see this:
0004b779 T _Z10vGnssTraceNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEhS4_
And the result of nm for the lib is this:
U _Z10vGnssTraceNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEhS4_
Looks like it should match!? How can I make the lib know the function in the executeable?
According to this https://stackoverflow.com/a/17083153/10551203 it should work.
Any help would be highly appreciated
Ralf