Menu

#2 Compiling Gaol together with PARI

wont-fix
None
5
2015-10-23
2015-10-23
No

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

Discussion

  • Frederic Goualard

    Ticket moved from /p/gaol/bugs/6/

     
  • Frederic Goualard

    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.

     
  • Frederic Goualard

    • status: open --> wont-fix
    • assigned_to: Frederic Goualard
    • Group: v1.0 (example) --> Next Release (example)
     

Log in to post a comment.