When linking an executable on Linux i get an 'undefined reference' error like this:
undefined reference to `symbol@SOMELIB_1.0'
I do not have a control of 'SOMELIB', but I do have the symbol symbol
in one of my own shared libraries. I'm absolutely sure that the symbol@SOMELIB_1.0 is the same (provides exactly the same functionality) that the symbol in my library, actually even the source code is almost the same.
How to force/alias the symbol@SOMELIB_1.0
to be linked from my library, not from SOMELIB_1.0
?
I was thinking about some kind of symbol versioning tricks in linker script, but I could not find any solution or even clues.
Thanks in advance.