- To: Bernd Prager <bernd@xxxxxxxxx>
- Subject: Re: "error: visibility attribute not supported" in Cygwin/Windows7
- From: Ian Lance Taylor <iant@xxxxxxxxxx>
- Date: Mon, 02 Apr 2012 22:25:47 -0700
- Cc: gcc-help@xxxxxxxxxxx
- Comment: DKIM? See http://www.dkim.org
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- In-reply-to: <4F79BBEF.5000802@prager.ws> (Bernd Prager's message of "Mon, 02 Apr 2012 10:47:11 -0400")
- User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
Bernd Prager <bernd@xxxxxxxxx> writes:
> I am struggling with the visibility attribute on Cygwin 1.7, Windows7
> and g++ (GCC) 4.5.3..
> I have set "CXXFLAGS= -fvisibility=hidden". Nevertheless compilation
> fails with:
>
> error: visibility attribute not supported in this configuration; ignored
>
> I even tried to set "#pragma GCC visibility push(hidden)" in the
> source code, to no effect.
As far as I know Windows does not support symbol visibility. I would be
happy to be corrcted on that, but that is certainly what the GCC error
message means.
Ian
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]