Re: Building with "Symbols Hidden by Default" enabled/-fvisibility=hidden, but still receiving duplicate symbols.
Re: Building with "Symbols Hidden by Default" enabled/-fvisibility=hidden, but still receiving duplicate symbols.
- Subject: Re: Building with "Symbols Hidden by Default" enabled/-fvisibility=hidden, but still receiving duplicate symbols.
- From: Chris Cleeland <email@hidden>
- Date: Mon, 11 Apr 2011 13:34:14 -0500
On Mon, Apr 11, 2011 at 1:18 PM, Joseph Frisch
<email@hidden> wrote:
> I'm using Xcode 3.2.6 to build 2 separate static libraries , one with "Symbols Hidden by Default" enabled, and the other disabled. But when I link them together in an executable, I receive duplicate symbols link errors. I've even built with "Other C/C++ Flags" set to -fvisibility=hidden, and I still receive duplicate symbols link errors. There are no inline methods in any of the source.
>
> What am I missing here???
I may be wrong, but I believe that visibility only comes into play
with DSOs, i.e., dynamically shared objects. It has nothing to do
with static linking.
That seems to be backed up by the text at
http://gcc.gnu.org/wiki/Visibility although it's not explicitly
stated.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden