|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2004-09-11 05:38:42
"Pavel Vozenilek" <pavel_vozenilek_at_[hidden]> writes:
> In order to export class from dynamic library
> one needs to add something as:
>
> __declspec(dllexport)
>
> wrapped in a macro. (Win32 example.)
>
>
> Right now libraries define their own macros, e.g
> Iostreams has BOOST_IO_DECL and Regex
> uses BOOST_REGEX_DECL.
> There could be more.
>
>
> I suggest common macro, BOOST_DECL
> to be used Boost-wide.
>
>
> Its value may be by default empty or deduced
> from BOOST_ALL_DYN_LINK
> as it is done in Regex.
It may be important to link a static version of one library with
a dynamic version of another. That wouldn't be possible with a
single macro.
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk