[Insight-developers] linking error ITK with an installed hdf5 1.8.12 on Mac

Sean McBride sean at rogue-research.com
Thu Dec 19 11:42:00 EST 2013


On Thu, 19 Dec 2013 14:42:44 +0100, Arnaud Gelas said:

>I am trying to build latest ITK (master branch) with an installed
>version of hdf5 (installed with homebrew on Mac 10.8), and I get the
>following linking errors:
>
>Linking CXX shared library ../../../../lib/libITKIOHDF5-4.6.dylib
>Undefined symbols for architecture x86_64:
>  "H5::H5Location::createAttribute(std::string const&, H5::DataType
>const&, H5::DataSpace const&, H5::PropList const&) const", referenced from:

C++ can be problematic for libraries due to ABI and mangling issues.  It's safest to build all your libraries and executable with the same compiler, same flags, and same standard library.  You say you got HDF from homebrew... can you know which compiler, flag, and C++ library they used?  Try to match your ITK build to that.

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada




More information about the Insight-developers mailing list