On Mon, 29 Jul 2013 17:21:07 +0200, Andrey Antipov said: >clang++ -std=c++11 -I/usr/local/include/ ../create.cpp -L/usr/local/lib - >lsz -lz -ldl -lm -lhdf5 -lhdf5_cpp -lhdf5_hl -lhdf5_hl_cpp > >works well, but it links with an old libc
Not libc, but libstdc++. On OS X there are 2 STL libraries: <http://gcc.gnu.org/libstdc++/> <http://libcxx.llvm.org> As Apple is no longer doing anything GNU, the version of libstdc++ they use is very old and has no/little C++11 support. >(since in fact there are no c+ >+11 features used). The libc++ manual at http://libcxx.llvm.org/ says >to use both. Sure, but trying one at a time shows us that your problem is HDF5&libc++ not HDF5&C++11. What if you build with -std=c++03 -stdlib=libc++ ? Cheers, -- ____________________________________________________________ Sean McBride, B. Eng [email protected] Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
