• 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: Linker shows "has different visibility" warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linker shows "has different visibility" warning


  • Subject: Re: Linker shows "has different visibility" warning
  • From: Greg Guerin <email@hidden>
  • Date: Sat, 12 Jan 2008 12:44:51 -0700

Dmitry Markman wrote:

>A and B have some subset of includes
>but file1.cpp and file2.cpp had includes in that subset with different order
>so I made order of includes in file1.cpp and file2.cpp the same

If changing the order of inclusion alters visibility, it suggests there is
a visibility pragma somewhere in those includes that is not using a paired
push/pop, and so affects everything coming after it.  It's probably wiser
to fix that instead of relying on a semi-magical inclusion order.  It may
not be easy to find the exact cause of the problem, but letting visibility
run-on from one include to another seems like asking for trouble.

For reference, search ADC for keywords: visibility pragma

  -- GG


 _______________________________________________
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

  • Follow-Ups:
    • Re: Linker shows "has different visibility" warning
      • From: Dmitry Markman <email@hidden>
  • Prev by Date: Re: Linker shows "has different visibility" warning (2nd)
  • Next by Date: Re: Linker shows "has different visibility" warning (2nd)
  • Previous by thread: Re: Linker shows "has different visibility" warning
  • Next by thread: Re: Linker shows "has different visibility" warning
  • Index(es):
    • Date
    • Thread