Boost logo

Boost-Build :

Subject: Re: [Boost-build] Avoid static dependencies when linking a shared lib
From: Nogradi, Chris (Chris.Nogradi_at_[hidden])
Date: 2012-07-23 08:53:27


On Sun 7/22/2012 8:56 AM, Bo Jensen wrote:
> > I have build a shared library, which in the build process depends on
> > some static libraries among other some boost libs. As a build test, I
> > added a test source linking with this shared library, but when it
> > links it insist on adding the static libraries which the shared
> > library depended on initially.

On Sunday, July 22, 2012 9:11 AM, Jurko Gospodnetic wrote:
> Could you prepare a small stand-alone project reproducing the
> problem?

I have previously provided the following example (and fix) which I believe is the same as the one reported here:

http://thread.gmane.org/gmane.comp.lib.boost.build/24424/focus=25122
http://article.gmane.org/gmane.comp.lib.boost.build/25122/match=nogradi

Thanks,

Chris

> -----Original Message-----
> From: boost-build-bounces_at_[hidden] [mailto:boost-build-
> bounces_at_[hidden]] On Behalf Of Jurko Gospodnetic
> Sent: Sunday, July 22, 2012 9:11 AM
> To: boost-build_at_[hidden]
> Subject: Re: [Boost-build] Avoid static dependencies when linking a
> shared lib
>
> Hi.
>
> > I have build a shared library, which in the build process depends on
> > some static libraries among other some boost libs. As a build test, I
> > added a test source linking with this shared library, but when it
> > links it insist on adding the static libraries which the shared
> > library depended on initially.
> >
> > I am just adding the shared library in sources like :
> >
> > mylib/<link>shared
> >
> > In my case the build fails on windows, because of the extra static
> > libraries.
>
> Could you prepare a small stand-alone project reproducing the
> problem?
>
> And are you sure it is the actual original static library and not
> import library for you shared library that is causing the problem?
>
> Best regards,
> Jurko Gospodnetić
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please contact the sender and delete all copies.

Thank you for your cooperation.


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk