__attribute__((visibility("default")))

Harri Porten kde-optimize@mail.kde.org
Mon, 30 Dec 2002 22:13:09 +0100 (CET)


Hi !

For the records, I already mentioned this to Dirk and others: there are
activities to support a different visibility in gcc.

  http://gcc.gnu.org/ml/gcc-patches/2002-11/msg01737.html

This would be great as this would allow following the Windows modell
(optionally!) that symbols to be exported have to explicitly marked as
such.
As Dirk found out that visibility attributes can't be applied to C++
structures this will only happen in _very_ far future :(

Being posted in November the statement "no released version supports the
visibility attribute yet" explains why it is so hard to get it working
with gcc 3.2 ;)

Harri.