This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: unexpected hidden symbol in gcc 4.0.0
- From: Paul Koning <pkoning at equallogic dot com>
- To: sam124 at operamail dot com
- Cc: rth at redhat dot com, gcc at gcc dot gnu dot org
- Date: Wed, 18 May 2005 11:32:51 -0400
- Subject: Re: unexpected hidden symbol in gcc 4.0.0
- References: <20050518041209.B042821AFF9@ws5-6.us4.outblaze.com>
>>>>> "Sam" == Sam Lauber <sam124@operamail.com> writes:
>> > The documentation for -fvisibility=hidden suggets that this
>> switch is > useful for shared libraries, to make things smaller
>> and faster. It > doesn't seem to be appropriate for object
>> libraries.
>> It's done *exactly* so that we catch this bug in your configury.
Sam> I don't know about you, but forcing a link failure in good code
Sam> just because someone screwed up GCC configuration is probably
Sam> the of the most worst compiler hacker's sins.
In this case it's the same person being affected, so that's not such a
big deal.
What surprises me is that it's normally ok to mix static and shared
libs, but not here. And the message is utterly uninformative about
what is wrong or why the restriction exists.
paul