[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gsl] Problem compiling version 1.4 on HP-UX (using native compiler)
From: |
bo . berggren |
Subject: |
[Bug-gsl] Problem compiling version 1.4 on HP-UX (using native compiler) |
Date: |
Mon, 3 May 2004 16:09:38 +0200 |
Hello !
I tried to compile GSL 1.4 on a HP-UX machine:
uname -a returns:
HP-UX mellon B.11.11 U 9000/785 2012498592 unlimited-user license
cc -V returns:
cpp.ansi: HP92453-01 B.11.11.06 HP C Preprocessor (ANSI)
The problem occurs on line 317 in file cdf/gauss.c.
GAUSS_XLOWER is defined as -37.519, the compiler gets confused with the two
- (minus) signs after each other. The fix was simple, just move the -
(minus) sign out
from the parentheses:
Original code (starting at line 317):
else if (x > (-GAUSS_XLOWER))
{
result = 0.0;
return result;
}
else if (x < (-GAUSS_XUPPER))
{
result = 1.0;
return result;
}
else
Changed code:
else if (x > -(GAUSS_XLOWER))
{
result = 0.0;
return result;
}
else if (x < -(GAUSS_XUPPER))
{
result = 1.0;
return result;
}
else
Best regards,
Bo Berggren
- [Bug-gsl] Problem compiling version 1.4 on HP-UX (using native compiler),
bo . berggren <=