Re: project management with pre-compiled headers and tr1
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