|
Boost : |
Subject: Re: [boost] [config] GCC symbol visibility across shared libraries
From: Jürgen Hunold (juergen.hunold_at_[hidden])
Date: 2010-05-20 17:02:57
Hi Robert !
On Thursday, 20. May 2010 21:20:58 you wrote:
> Here's a notable distinction between GCC's visibility attribute and MSVC's
> __declspec: The latter is accepted on forward declarations while the
> latter produces a warning[*] and is otherwise ignored. That is, for
> portability, BOOST_SYMBOL_EXPORT must be applied to a UDT definition and
> not to a declaration.
>
> * foo.hpp:n: warning: type attributes are honored only at type definition
Yes, this is a known issue. My patch removes the macros from some
declarations. msvc seems to work without them anyway.
Yours,
Jürgen
-- * Dipl.-Math. Jürgen Hunold ! Ingenieurgesellschaft für * voice: ++49 511 262926 57 ! Verkehrs- und Eisenbahnwesen mbH * fax : ++49 511 262926 99 ! Lister Straße 15 * juergen.hunold_at_[hidden] ! www.ivembh.de * * Geschäftsführer: ! Sitz des Unternehmens: Hannover * Prof. Dr.-Ing. Thomas Siefer ! Amtsgericht Hannover, HRB 56965 * PD Dr.-Ing. Alfons Radtke !
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk