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: Joseph Frisch <email@hidden>
- Date: Mon, 11 Apr 2011 20:56:30 +0200
>>> 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.
>
> I'm not completely sure either, but that is also my sense of how the
> feature works, i.e. dynamic libraries only.
Thanks. I changed both of the libs to be dynamic. Clean build, same duplicate symbols.
_______________________________________________
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