• 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
duplicate symbol from boost
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: CocoaEchoServer.m:183: warning: class 'EchoServer' does not implement the 'NSStreamDelegate' protocol
  • Next by Date: Re: CocoaEchoServer.m:183: warning: class 'EchoServer' does not implement the 'NSStreamDelegate' protocol
  • Previous by thread: Re: CocoaEchoServer.m:183: warning: class 'EchoServer' does not implement the 'NSStreamDelegate' protocol
  • Next by thread: Re: duplicate symbol from boost
  • Index(es):
    • Date
    • Thread