LAPACK Archives

[Lapack] integer size in f2c.h


I have come across a problem in the f2c.h header in 
http://www.netlib.org/clapack/index.html:
If the operating system is a 64-bit-integer version, as more and more
Linux systems are, the 'int' in C are 64-bit integers, not 32-bit
integers as they used to be. So the typedef declaration of 
typdef long int integer;
should be replaced by
typdef int integer;
by using some sort of common preprocessor flag (like checking __LP64__ )
to ensure that Fortran's 32 bit integers are still 32 bit on the C side.
-- 
Richard J. Mathar               cell phone (+49) (0) 177 3834227 (E-plus)
Sterrewacht Universiteit Leiden Fax (+31) (0) 71 527 5819
Postbus 9513
2300RA Leiden   E-mail mathar@Domain.Removed
The Netherlands                 URL http://www.strw.leidenuniv.nl/~mathar
office: Niels Bohrweg 2, 2333 CA Leiden, H104

<Prev in Thread] Current Thread [Next in Thread>
  • [Lapack] integer size in f2c.h, Richard Mathar <=


For additional information you may use the LAPACK/ScaLAPACK Forum.
Or one of the mailing lists, or