#141 closed defect (fixed)
slalib.h uses #elseif
| Reported by: | Paul Price | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | astro | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: |
Description
During testing on nkfb0, psLib would not link with SLALIB:
slalib.h:61:2: invalid preprocessing directive #elseif
slalib.h:67:1: "slaAoppa" redefined
slalib.h:57:1: this is the location of the previous definition
slalib.h:68:1: "slaAopqk" redefined
slalib.h:58:1: this is the location of the previous definition
slalib.h:69:1: "slaOapqk" redefined
slalib.h:59:1: this is the location of the previous definition
"#elseif" should be "#elif".
Not sure why nkfb0 barfed but my machine didn't. It could be that nkfb0 has gcc
3.3.3, while mine has 3.2.3, or some different handling of the Fortran function
symbols.

This is the problem with knowing so many languages. :-)
I replaced the #elseif statements with #elif, as you suggested. I folded the
change into the CVS main trunk and created a rel2_2 tag that contains this fix
for the rel2 codebase.
-rdd