clang++ undefined symbols for architecture x86_64

Hi,

I am trying to update our ECLiPSe CLP system for Mac OS X. I am using an iMac from 2010, with Mac OS X 10.12.6.

Our system is multi-platform, and on the Mac, we build the system like on other Unix platforms, from a shell, and not directly in Xcode.

I am having problems updating a C++ program.

`g++ -dynamiclib ... -mmacosx-version-min=10.5 install_name,@rpath/seosiclpcbc.dylib ,,,  -lgmp -o x86_64_macosx/seosiclpcbc.dylib

` (I have missed out some detail with ..., to shorten it)

This links, but I get a warning

`warning: [0mlibstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
`

When I change -mmacosx-version-min to 10.9, I get many undefined symbol errors like

`Undefined symbols for architecture x86_64:
  "OsiClpSolverInterface::setColName(int, std::__1::basic_string<char, std::__1::cha\
r_traits<char>, std::__1::allocator<char> >)", referenced from:`

It looks to me like the system is not linking in a C++ lib. I tried adding -lc++, but this does not help.Does anyone know what the problem is?

Thanks in advance for any help!

Kish Shen

I have found the problem: the linker was linking in third party library files that I did not recompile with -mmacosx-version-min 10.9. I recompiled these files and resolved the problem.

clang&#43;&#43; undefined symbols for architecture x86_64
 
 
Q