I have compiled a static library via the command line using llvm-g++-4.2. When I attempt to link against that library and build an app within XCode, I get this:
Undefined symbols for architecture armv7: (null): "__ZN12NamespaceOne5NamespaceTwo10NamespaceThree11functionEPDv2_x", referenced from: ...
(Note that I'm obfuscating the actual namespace and function names)
When I look at the library using nm, I see this:
000007cc T __ZN12NamespaceOne5NamespaceTwo10NamespaceThree11functionEPU8__vectorx
The method is defined, but the mangled name differs slightly at the end. Is it the case that XCode (which is using clang++) doesn't like my llvm-g++-4.2 library?