Kuba
> Is there any solution for my problem besides using the same version
> of gcc that the external application is compiled when I compile/link
> my plugin library?
Yes; but using the same version of 'g++' is much simpler.
> Static linkage doesn't solve this problem.
Static linking *does* solve the problem, but in addition to linking
libstdc++.a into your plugin, you must also hide the symbols that
came from it.
This is best done with a linker version script which explicitly
exports whatever your plugin must export, and hides everything
else, e.g.:
$ cat Version
MyPlugin {
global: func1; func2; func3;
local: *;
};
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
hello,
thanks for your advice.
unfortunately it didn't help.
i managed to hide symbols that come from libstdc++.a (option
--retain-symbols-file) but it didn't solve my problem.
my plugin library didn't work anyway.
linker option -Bsymbolic helped.
it caused that my library didn't use any function from dynamic version
of libstdc++.
kuba