• 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: project management with pre-compiled headers and tr1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: project management with pre-compiled headers and tr1


  • Subject: Re: project management with pre-compiled headers and tr1
  • From: Paul Walmsley <email@hidden>
  • Date: Sat, 25 Nov 2006 16:51:59 +0000



Also, All headers have include guards to avoid multiple includes. This works great without pre-compiling the headers. But as soon as I include the First*.h into the pre-compiled header it generates the warning "multiple definitions of symbol std::tr1::placeholders::(anonymous namespace)::_*" with * being a digit from 0-10, which is a confusing error.
I have seen this when using a project that uses <boost/bind.hpp>. I had a static lib that used it in two different source files and this led to a very similar link error to the one you describe (the _1, _2, etc arguments were the lambda-function placeholders used in boost::bind() ). I did google around and find a few people reporting it as a bug with gcc 4.0.1, but I didn't get any closer in isolating it. Maybe it was a precompiled header issue as you suggest.

In any case, I don't tend to find adding things to the precompiled headers with gcc/xcode to give much of a compile-time boost. The big penalty comes from having to include the whole of <Carbon.h> (or whatever) just to access a single typedef in a system header).

Paul

_______________________________________________
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: 
 >project management with pre-compiled headers and tr1 (From: Tobias Ford <email@hidden>)

  • Prev by Date: Debug view: Can't get a variable into the variable view
  • Next by Date: Re: LSEnvironment
  • Previous by thread: project management with pre-compiled headers and tr1
  • Next by thread: Debug view: Can't get a variable into the variable view
  • Index(es):
    • Date
    • Thread