• 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: Different visibility in Release version
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Different visibility in Release version


  • Subject: Re: Different visibility in Release version
  • From: Craig Reynolds <email@hidden>
  • Date: Sat, 05 Dec 2009 14:12:19 -0800

Date: Fri, 04 Dec 2009 15:13:46 -0800
From: Todd Heberlein <email@hidden>

I have a static library (consisting of C++ code) and a Cocoa app that links against that library. When compiling the Debug version of the Cocoa app Xcode generates no warning values, but the Release version generates a bunch of warning values (example shown below). It seems to complain that the code in the the library has a different visibility (default) than that in the application objects (hidden).

I've tried linking against the debug and release version of the library, but I seem to continue to get the warning values.

Any ideas?

Is there an easy way (other than using eyeballs) to compare Xcode build settings between the Release and Debug versions to see if I have an inconsistent setting?
Thanks,

Todd

Regarding "ld: warning: ... has different visibility (default) in ... and (hidden) in ..." I think the relevant setting is "Inline method hidden" aka GCC_INLINES_ARE_PRIVATE_EXTERN. But see also http://openradar.appspot.com/7444677 which I just filed yesterday.

Craig Reynolds
http://www.red3d.com/cwr/

_______________________________________________
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: Different visibility in Release version
      • From: Todd Heberlein <email@hidden>
  • Prev by Date: [JOB] 2 iPhone App Developer Roles in NYC to 140k - Relo OK
  • Next by Date: Re: Lots of warnings with boost & LLVM-GCC compiler
  • Previous by thread: Re: Different visibility in Release version
  • Next by thread: Re: Different visibility in Release version
  • Index(es):
    • Date
    • Thread