Re: duplicate symbol from boost
Re: duplicate symbol from boost
- Subject: Re: duplicate symbol from boost
- From: Nivek Research <email@hidden>
- Date: Tue, 15 Jun 2010 10:04:30 -0400
The symbols in your initial report come from boost lambda I believe. I would suspect that the project that works either does not use boost lambda or only uses boost lambda in a single file while the project that fails uses boost lambda in multiple files. I believe the compiler problem is also only seen if the projects use PCHs so if the project that works is not using PCHs that could also be an explanation.
You might read the bug report and see if there are any comments that might help you find a solution. I was not willing to turn off PCHs so I did not explore that option. To my knowledge the only real fix is to use GCC 4.2 which I'm unable to do at this time since I still need to support Mac OS X v10.4. Otherwise, I'm not aware of a solution; although, as I stated before I would appreciate hearing if you find one. --kevin You may be experiencing the effects of a bug in GCC <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10591>. The symbols in question are declared in the anonymous namespace and, therefore, global, but due to the bug they are not unique. I have not found an acceptable workaround and for other reasons I'm stuck using the GCC 4.0 compiler, but I would appreciate hearing if you do find a solution.
I'm using gcc 4.0 for all projects concerned. And I don't understand how it's OK in one project but not the other. Is there a compiler setting that would cause more name mangling to occur or something like that, which lets it work like it's supposed to work?
|
_______________________________________________
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