This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]