This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Shared library linking with external static libraries.
FloofLeBo <bluswedshooz@yahoo.fr> writes:
> Thanks, I'm getting closer to what I want.
>
> I've created a simple Version script:
>
> [code]
> VERSION {
> {
> global:
> SomeRootNameSpaceClass*;
> SomeOtherRootNameSpaceClass*;
> SomeNameSpace::*;
> SomeOtherNameSpace::*;
> local:
> *;
> };
> }
> [/code]
>
> But then, if I try to link with the produced so, i get undefined references
> to methods that should be exported:
It looks like you need to use extern "C++" in your version script. Look
for extern "lang" in
http://sourceware.org/binutils/docs-2.20/ld/VERSION.html .
Ian