I'm trying to compile some code in OSX 10.10 using the latest Xcode cmd line tools. Compilation works, but linking is a nightmare. First, I get an error that a symbol is multiply defined. This error is correct, but the definitions are identical and in 3rd-party libraries that I don't control. I can not figure out how to force the linker to ignore this issue. One important note is that the same code compiles, links and runs flawlessly on my Ubuntu box, under both clang and gcc. This linker issue is only under OS X. The libraries are static.
The second issue I encounter is even stranger. If I remove some (necessary) functionality just so I can compile and link the program, I get the following fun message when I run it: "dyld: Symbol not found: __ZNSt12future_errorD1Ev". The hell is that, and how do I fix it? Google was unhelpful on that front.