Re: Different visibility in Release version
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