Boost logo

Boost :

From: Mike Jackson (imikejackson_at_[hidden])
Date: 2008-01-31 11:24:37


While trying to create an intermediate dynamic library on OS X
10.4.11 (Intel) that utilizes boost::file_system I receive the
following link errors:

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_trai
tsIwESaIwEENS0_12wpath_traitsEEEEERKT_vE9init_path (size 16)
CMakeFiles/MXADataModel.dir/src/HDF5/H5MXADataFile.o definition of
common
__ZZN5boost10filesystem12initial_pathINS0_10basic_pathISsNS0_11path_trai
tsEEEEERKT_vE9init_path (size 16)
CMakeFiles/MXADataModel.dir/src/HDF5/H5MXADataFile.o definition of
common
__ZZN5boost10filesystem6detail14remove_all_auxINS0_10basic_pathISbIwSt11
char_traitsIwESaIwEENS0_12wpath_traitsEEEEEmRKT_E7end_itr (size 16)
CMakeFiles/MXADataModel.dir/src/HDF5/H5MXADataFile.o definition of
common
__ZZN5boost10filesystem6detail14remove_all_auxINS0_10basic_pathISsNS0_11
path_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 reproducible on the system by simply including boost/
filesystem/operations.hpp in any file that is built into the library.

Thanks for your attention to this bug. I have also submitted this as
bug #1613.

-------------
Mike Jackson
Senior Software Engineer
IMTS.us


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk