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: Eric Wing <email@hidden>
- Date: Mon, 11 Apr 2011 11:40:22 -0700
On 4/11/11, Chris Cleeland <email@hidden> wrote:
> 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.
I'm not completely sure either, but that is also my sense of how the
feature works, i.e. dynamic libraries only.
-Eric
--
Beginning iPhone Games Development
http://playcontrol.net/iphonegamebook/
_______________________________________________
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