duplicate symbol from boost
duplicate symbol from boost
- Subject: duplicate symbol from boost
- From: Steve Mills <email@hidden>
- Date: Fri, 11 Jun 2010 15:26:53 -0500
We have 2 main projects; one for a desktop product and one for a server product. They both contain the same subprojects. They have different but somewhat similar pch files. One of the subprojects relies heavily on boost. When I build the server project, I'm getting this:
ld: duplicate symbol boost::lambda::(anonymous namespace)::_3 in /depot/cmyk/xcodebuilds/Debug/libAGLServerDB.a(MultiAdBlitters.o) and /depot/cmyk/xcodebuilds/Debug/libAGLServerDB.a(hsGBitmapBlitters.o)
This symbol comes from boost/lambda/core.hpp and looks like this:
namespace boost {
namespace lambda {
namespace {
// These are constants types and need to be initialised
boost::lambda::placeholder1_type free1 = boost::lambda::placeholder1_type();
boost::lambda::placeholder2_type free2 = boost::lambda::placeholder2_type();
boost::lambda::placeholder3_type free3 = boost::lambda::placeholder3_type();
boost::lambda::placeholder1_type& _1 = free1;
boost::lambda::placeholder2_type& _2 = free2;
boost::lambda::placeholder3_type& _3 = free3;
// _1, _2, ... naming scheme by Peter Dimov
} // unnamed
} // lambda
} // boost
What could cause this symbol to generate that error in one project and not in another.
Steve Mills
Drummer, Mac geek
_______________________________________________
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