Re: calling from one libfoo.a to another

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

 



I'm not sure I understand.  I believe that in the past I've done what
you're talking about without issues.  Do you have a minimal example?

  Brian

On Wed, Mar 10, 2010 at 2:02 PM,  <travis@xxxxxxxxxxxxxxxxx> wrote:
> Hello all,
>
> Not sure where to ask this, apologies in advance if this isn't
> appropriate.  I'll only ask once, so ignoring me or a direct response
> will be sufficient.
>
> I'd like to call from one library (libfoo.a) to another (libbar.a) without
> directly linking the two.  In other words, I'd like to have the symbol
> resolved when I link the final executable.  I've tried "weak"
> attribute, and they work in some cases, like when the caller is not in
> a library, but on our platform, when you compile it into libraries, it
> gets left undefined... a call to the weak reference will segfault at
> run-time (I assume because it's not getting defined before the
>
> I'm just curious if there's an easy way to call from one .a to another
> to avoid drastically restructuring our code base.
>
> If this is unclear, please let me know.
> --
> A Weapon of Mass Construction
> My emails do not have attachments; it's a digital signature that your mail
> program doesn't understand. | http://www.subspacefield.org/~travis/
> If you are a spammer, please email john@xxxxxxxxxxxxxxxxx to get blacklisted.
>


[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