[Insight-users] Intel Compiler and Multiple Definitions

Mike Jackson imikejackson at gmail.com
Wed Mar 7 09:55:58 EST 2007


First, the machine details, OS X 10.4.8 using ICC version 9.1.036 on  
a MacBook Pro (Intel Core Duo).

I am trying to compile the opensource package ITK (www.itk.org) and I  
am getting warnings about multiple definitions:

ld: warning multiple definitions of symbol ___isnanf
/opt/intel/cc/9.1.036/lib/libimf.a(isnan.o) definition of ___isnanf  
in section (__TEXT,__text)
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../..//libm.dylib 
(xmm_misc.o) definition of ___isnanf

So it looks like I am picking up both the libm that is included with  
OS X and the the libimf from the Intel compilers.

I am still a bit new to the whole C++ thing so I am not sure what  
flags I should be looking to use when compiling my code.

Here is my link line:

/usr/bin/icpc -xP -fno-common -dynamiclib {lots of .o files} -L. -L/ 
Users/Shared/OpenSource/ITK301-Intel/bin -litkvcl -lm

Any help is greatly appreciated.
--
Mike Jackson
imikejackson & gmail * com





More information about the Insight-users mailing list