[Proj] Errors compiling proj4 on linux
Martin Desruisseaux
martin.desruisseaux at geomatys.fr
Thu May 31 06:43:39 PDT 2012
Le 31/05/12 14:50, Calogero Mauceri a écrit :
> jniproj.c: In function `Java_org_proj4_PJ_getSemiMajorAxis':
> jniproj.c:221: error: `NAN' undeclared (first use in this function)
> jniproj.c: In function `Java_org_proj4_PJ_getSemiMinorAxis':
> jniproj.c:237: error: `NAN' undeclared (first use in this function)
Looking on the web, it seem that the NAN constant is not guaranteed to
be available on every compiler. I guess that for being very strict, I
should returns the value of the java.lang.Double.NaN field (so we would
also be sure that it is exactly the value expected by Java). I will try
a patch.
Martin
More information about the Proj
mailing list