• 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: many, many linker warnings with boost & xcode 3.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: many, many linker warnings with boost & xcode 3.2


  • Subject: Re: many, many linker warnings with boost & xcode 3.2
  • From: Shamyl Zakariya <email@hidden>
  • Date: Sat, 29 Aug 2009 14:48:39 -0400

Well, I figured it out. There was a difference in build settings between a sub-target and the main target of the project -- specifically "Inline Methods Hidden". Apparently this didn't trigger any warnings before. But warnings are good, so I'm glad of this even if it took some head scratching.

shamyl zakariya
	- squamous and rugose



On Aug 28, 2009, at 3:21 PM, Shamyl Zakariya wrote:

Like many people here I installed snow leopard today. I'm happy that my largely c++ codebase still builds, but the linker emits an *enormous* number of warnings now, when it was quite silent before.

The warnings seem to do with Boost. I'm getting 142 of these warnings when building the framework as well as when building apps which link against this framework. All the warnings are to do with differing visibility and non-virtual thunks... here are two representative picks:

ld: warning: boost::exception_detail::bad_alloc_impl::add_ref() consthas different visibility (default) in /Users/zakariya/Code/ Projects/SimpleGameFramework/trunk/sgf/build/Release/libboostpython.a (errors.o) and (hidden) in /Users/zakariya/Code/Projects/ SimpleGameFramework/trunk/sgf/build/sgf.build/Release/SGF.build/ Objects-normal/i386/BasicCamera.o

ld: warning: non-virtual thunk to boost ::exception_detail ::exception_clone < boost ::exception_detail::error_info_injector<boost::bad_function_call> >::add_ref() consthas different visibility (default) in /Users/ zakariya/Code/Projects/SimpleGameFramework/trunk/sgf/build/Release/ libboostpython.a(errors.o) and (hidden) in /Users/zakariya/Code/ Projects/SimpleGameFramework/trunk/sgf/build/sgf.build/Release/ SGF.build/Objects-normal/i386/Logging.o

The code DOES still work, but these warnings are troubling. I didn't see them under Xcode 3.1 under 10.5. I assume there's some switch somewhere which might address this. Or, on the other hand, is this a matter of rebuilding boost?

Finally, I was using gcc 4.2 before, and am using it now as well.

Thanks,

shamyl zakariya
	- squamous and rugose




_______________________________________________ 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: 
 >many, many linker warnings with boost & xcode 3.2 (From: Shamyl Zakariya <email@hidden>)

  • Prev by Date: llvm-gcc-4.2 link-time error seen from command line but not in Xcode 3.2
  • Next by Date: Verbose Output in Build Results Window - Xcode 3.2
  • Previous by thread: many, many linker warnings with boost & xcode 3.2
  • Next by thread: Is the Xcode 3.1.3 predicate builder broken, or...
  • Index(es):
    • Date
    • Thread