[MetaCRS] Using CS-Map to retrieve WKT for EPSG CRS codes: Help?

Christopher Schmidt crschmidt at metacarta.com
Tue Dec 16 22:10:37 EST 2008


On Tue, Dec 16, 2008 at 05:55:39PM -0800, Norm Olsen wrote:
> Thanks for locating the Linux 64 issues.  I do not have access to a 64 bit Linux machine; your help in this area is greatly appreciated.  I'll try to get these corrections in pronto.  Do you know what word size the Linux 64 bit compiler uses for the "long" type?

A quick application I threw together, don't know if this helps:

crschmidt at helios:~$ ./a.out
sizeof(int): 4
sizeof(unsigned long): 8
sizeof(long): 8
sizeof(double): 8
sizeof(float): 4
sizeof(unsigned int): 4

For the record, the problem that I ran into is that the .h file defined
the prototype with ulong32_t, but then the .c file just use 'long'. It
seems to me that these should be the same, rather than different... in
this case, since my 'long' is longer than 4, the .h file was declaring
that the argument was of type unsigned int... but the .c was saying it
was long, and those two can't go together.

Regards,
-- 
Christopher Schmidt
MetaCarta


More information about the MetaCRS mailing list