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

Arnaud Gelas arnaudgelas at gmail.com
Fri Dec 20 10:02:11 EST 2013


Hi Sean,

You were totally right! It turns out different compilers were used for hdf5 and for itk…
Now it works fine!

Thanks!!!

Happy holidays
Arnaud

On Dec 19, 2013, at 5:42 PM, Sean McBride <sean at rogue-research.com> wrote:

> 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
> 
> 

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-developers


More information about the Community mailing list