common symbols not allowed with MH_DYLIB - OS X

common symbols not allowed with MH_DYLIB - OS X

Imagen de Community Admin

I am trying to compile some code against Boost 1.34.1 and I am getting the following error:

Linking CXX shared library Bin/libMXADataModel.dylib

xilibtool: executing 'libtool'

ld: common symbols not allowed with MH_DYLIB output format with the -multi_module option

CMakeFiles/MXADataModel.dir/src/HDF5/H5MXADataFile.o definition of common __ZZN5boost10filesystem12initial_pathINS0_10basic_pathISbIwSt11char_traitsIwESaIwEENS0_12wpath_traitsEEEEERKT_vE9init_path (size 16)

CMakeFiles/MXADataModel.dir/src/HDF5/H5MXADataFile.o definition of common __ZZN5boost10filesystem12initial_pathINS0_10basic_pathISsNS0_11path_traitsEEEEERKT_vE9init_path (size 16)

CMakeFiles/MXADataModel.dir/src/HDF5/H5MXADataFile.o definition of common __ZZN5boost10filesystem6detail14remove_all_auxINS0_10basic_pathISbIwSt11char_traitsIwESaIwEENS0_12wpath_traitsEEEEEmRKT_E7end_itr (size 16)

CMakeFiles/MXADataModel.dir/src/HDF5/H5MXADataFile.o definition of common __ZZN5boost10filesystem6detail14remove_all_auxINS0_10basic_pathISsNS0_11path_traitsEEEEEmRKT_E7end_itr (size 16)

libtool: internal link edit command failed

make[2]: *** [Bin/libMXADataModel.dylib] Error 1

make[1]: *** [CMakeFiles/MXADataModel.dir/all] Error 2

make: *** [all] Error 2

This is on OS X 10.4.11 (intel) with the latest icc (10.1.007)

Thanks

Mike Jackson

1 envío / 0 nuevos
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.