Hi
in building 4.0 with the Intel compiler (Altix/SUSE Linux)
I encountered the following:
icpc -Wbrief -ansi -Wno-deprecated -mcpu=itanium2 -O3 -parallel
-override_limits -ip -fno-alias -ftz -IPF-fma -IPF-fltacc -IPF-fp-relaxed
-cxxlib-icc -mcpu=itanium2
-I/home/nkilleen/dmf/software/fsl/4.0/intel/extras/include/newmat
-I/home/nkilleen/dmf/software/fsl/4.0/intel/extras/include/libprob
-I/usr/include -I. -I/home/nkilleen/dmf/software/fsl/4.0/intel/include
-I/home/nkilleen/dmf/software/fsl/4.0/intel/include -c -o possum.o possum.cc
/usr/include/bits/mathcalls.h(129): error: exception specification is
incompatible with that of previous function "MISCMATHS::expm1" (declared at
line 50 of
"/home/nkilleen/dmf/software/fsl/4.0/intel/extras/include/libprob/../cprob/cprob.h")
/usr/include/bits/mathcalls.h(132): error: exception specification is
incompatible with that of previous function "MISCMATHS::log1p" (declared at
line 49 of
"/home/nkilleen/dmf/software/fsl/4.0/intel/extras/include/libprob/../cprob/cprob.h")
/usr/include/bits/mathcalls.h(250): error: exception specification is
incompatible with that of previous function "MISCMATHS::erf" (declared at
line 42 of
"/home/nkilleen/dmf/software/fsl/4.0/intel/extras/include/libprob/../cprob/cprob.h")
/usr/include/bits/mathcalls.h(251): error: exception specification is
incompatible with that of previous function "MISCMATHS::erfc" (declared at
line 41 of
"/home/nkilleen/dmf/software/fsl/4.0/intel/extras/include/libprob/../cprob/cprob.h")
/usr/include/bits/mathcalls.h(265): error: exception specification is
incompatible with that of previous function "MISCMATHS::gamma" (declared at
line 27 of
"/home/nkilleen/dmf/software/fsl/4.0/intel/extras/include/libprob/../cprob/cprob.h")
And it's true, these functions are defined in /usr/include/bits/mathcalls.h
as well as in cprob.h
Here is a fragment from mathscalls.h that shows the function expm1
#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99
__BEGIN_NAMESPACE_C99
/* Return exp(X) - 1. */
__MATHCALL (expm1,, (_Mdouble_ __x));
regards
Neil
|