Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-09-16 10:10:30

Beman Dawes <bdawes_at_[hidden]> writes:

> At 01:35 AM 9/10/2003, Paul Hamilton wrote:
> >
> >In building my stuff into windows DLL's, and getting all of the exports
> >right, I find that other boost libraries have also not been setup
> >correctly to be able to be used within a dll on windows.
> >
> >All of the filesystem/path code needs to have __declspec's added to the
> >entry points so that it correctly imports when used externally, and
> >exports when used from within it's own library (just like Regex does).
> >
> >I am happy to go ahead and do this work if nobody else has done it.
> Hum... There is a BOOST_HAS_DECLSPEC macro. There are
> but not overall BOOST_DECL macro. What gives? I would have thought we
> would have had such an animal a long time ago. Or does every dll need
> its own?

Yes, if one DLL needs to use another, or if the user wants to mix linking
dynamically with lib1 but statically with lib2.

Dave Abrahams
Boost Consulting

Boost list run by bdawes at, gregod at, cpdaniel at, john at