• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Building with "Symbols Hidden by Default" enabled/-fvisibility=hidden, but still receiving duplicate symbols.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Building with "Symbols Hidden by Default" enabled/-fvisibility=hidden, but still receiving duplicate symbols. (From: Joseph Frisch <email@hidden>)
 >Re: Building with "Symbols Hidden by Default" enabled/-fvisibility=hidden, but still receiving duplicate symbols. (From: Chris Cleeland <email@hidden>)
 >Re: Building with "Symbols Hidden by Default" enabled/-fvisibility=hidden, but still receiving duplicate symbols. (From: Eric Wing <email@hidden>)

  • Prev by Date: Re: Building with "Symbols Hidden by Default" enabled/-fvisibility=hidden, but still receiving duplicate symbols.
  • Next by Date: Re: Building with "Symbols Hidden by Default" enabled/-fvisibility=hidden, but still receiving duplicate symbols.
  • Previous by thread: Re: Building with "Symbols Hidden by Default" enabled/-fvisibility=hidden, but still receiving duplicate symbols.
  • Next by thread: Re: Building with "Symbols Hidden by Default" enabled/-fvisibility=hidden, but still receiving duplicate symbols.
  • Index(es):
    • Date
    • Thread