Quantcast
Channel: Intel® Software - Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1175

math.h and C++ intel compiler 19.1

$
0
0

Hi,

We are trying to compile our code (which compiles fine with 16.x on SUSE) with intel compiler 19.1 on redhat and get the following error:

allowing all exceptions is incompatible with previous function "gamma"  (and all the math functions have the same error)

 icpc -c -m64 -DLS64BIT -fPIC -O2 -Kc++ -DDB2UDB  -DSQL_KERNEL_EXTENSION -DUNIX -DBUILDLEVEL=\"11-ls_8700\" -DLINUX -DLS64BIT -DUNIX_64 -I/home/****/v87ls/src/ls -I/home/****/v87ls/inc -I/home/****/v87ls/build/resources/lnx/icc64/inc -I/home/****/v87ls/build/resources/lnx/oi/common -I/home/db2inst1/sqllib/include -I/home/****/v87ls/src/ldap  -DNULL=0 -o icmplsbv.o /home/****/v87ls/build/objs/db2/icmplsbv.cpp
12:05:14 [albus] /home/****/v87ls/build/objs/db2/icmplsbv.cpp(7610): error: allowing all exceptions is incompatible with previous function "gamma" (declared at line 7287)
12:05:14 [albus]   extern "C" double    gamma( double __x );

Looking at our generated code, this is what I see:

extern double lgamma (double) throw ();

extern "C" double    gamma( double __x );

Obviously the throw() declaration causes the problem.  I am not sure which declaration comes from math.h and where the other one comes from.

Please advise.

Thanks

Phong

 

TCE Open Date: 

Friday, January 10, 2020 - 08:35

Viewing all articles
Browse latest Browse all 1175

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>