Re: Shared library linking with external static libraries.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



FloofLeBo <bluswedshooz@xxxxxxxx> 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux