Compiling Gaol together with PARI
Brought to you by:
goualard
Hi,
I have a project in which I use Gaol along with PARI.
During the compilation, the line
MATHLIB_DLL double usqrt(double );
of gaol_double_op.h creates a conflict with the usqrt function of PARI.
It seems that moving the 17 MATHLIB_DLL lines inside the namespace solve the problem.
Is that the right thing to do?
Thanks.
Best,
Rafael
Ticket moved from /p/gaol/bugs/6/
Hello Rafael,
I took the liberty to move this report from "bugs" to "feature-request" as it is not a bug per se.
I am not sure what you did is a smart move because:
1/ usqrt() is not a gaol function; it is provided by IBM APMathlib
2/ usqrt() is a C function, not a C++ one.
If it works for you, you might try configure gaol with crlibm instead of apmathlib:
./configure --with-mathlib=crlibm
Cheers,
F.