Boost logo

Boost Users :

Subject: Re: [Boost-users] issues when linking a library that uses boost classes
From: dhruva (dhruvakm_at_[hidden])
Date: 2010-09-09 00:10:58


Hello,

On Wed, Sep 8, 2010 at 4:08 PM, Sean Farrow
<sean.farrow_at_[hidden]> wrote:
> Hi:
>
> I’ve recently written a library that uses boost classes internally. The
> library (the release version) uses the visual studio multi-threaded static
> library. When I try to use the class in another program that uses boost
> classes it appears the relevant parts of the library don’t get linked in.
> After specifying the lib on the linker tab (i.e the one that I’ve built) the
> build goes fine, but I get an excdeption when the app is run. Any ideas?
>
> I can replicate this with two projects, visual studio 2008, boost 1.44
> release.
>
> If anybody wants to take a look at the solution, I’m happy to send off-list.

Faced a similar problem when using boost::filesystem sometime back. It
was due to using a release build
of boost library with debug of my application. When I changed to use a
debug library version of boost,
the exception/crash disappeared.

-dhruva


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net