unformatted seq io record markers

Janne Blomqvist jblomqvi@cc.hut.fi
Sat May 21 15:57:00 GMT 2005


On Sat, May 21, 2005 at 09:26:00AM -0400, Emil Block wrote:
> Is there a difference between g77 and gcc or g++ style 32bit record 
> markers  ?

As neither C nor C++ have any concept of records, the difference is
indeed quite significant! ;-D

If you want compatibility between C and Fortran files, either you
handle the record markers manually from your C code, or you wait until
someone implements access='stream' and/or form='binary', which
resemble the C io model. Better yet, use a library such as netcdf (or
hdf) which takes care of this issue as well as other portability
issues (size of variables, endianness etc.).

-- 
Janne Blomqvist



More information about the Fortran mailing list