[Insight-users] intel 10.1 undefined reference

David Fuentes fuentesdt at gmail.com
Tue Jan 13 10:59:37 EST 2009


hello I'm trying to build ITK with icc,icpc 10.1 on Ubuntu

usul$ uname -a
Linux usul.ices.utexas.edu 2.6.24-23-generic #1 SMP Thu Nov 27 18:13:46 
UTC 2008 x86_64 GNU/Linux
usul$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 8.04.2
Release:        8.04
Codename:       hardy


and am getting the following linking errors


Linking CXX executable ../../bin/itkTestDriver
../../bin/libITKCommon.a(itkLightObject.o): In function 
`__gnu_cxx::__exchange_and_add(int volatile*, int)':
/usr/include/c++/4.2.4/ext/atomicity.h:51: undefined reference to 
`__sync_fetch_and_add'
../../bin/libITKCommon.a(itkLightObject.o): In function 
`__gnu_cxx::__atomic_add(int volatile*, int)':
/usr/include/c++/4.2.4/ext/atomicity.h:55: undefined reference to 
`__sync_fetch_and_add'
../../bin/libITKCommon.a(itkTimeStamp.o): In function 
`__gnu_cxx::__exchange_and_add(int volatile*, int)':
/usr/include/c++/4.2.4/ext/atomicity.h:51: undefined reference to 
`__sync_fetch_and_add'
make[2]: *** [bin/itkTestDriver] Error 1
make[1]: *** [Code/IO/CMakeFiles/itkTestDriver.dir/all] Error 2
make: *** [all] Error 2


Has anyone had a similiar problem?


thank you,
David Fuentes


More information about the Insight-users mailing list