Date: 7 Jan 93 12:47:00 +0003 (GMT+3:00) From: "Fine-62701 219828" Subject: Re: f2c format i/o troubles To: "kuku" Cc: "djgpp" Hi, Chris You have written that >> The present version of f2c allows Hex Constants like z'ff' in data >> statements as well Z format in Format statements. >> Look at this piece of f2c fortran: >> program hex >> data i/z'ffff'/ >> i=i-1 >> write(*,'(Z8)')i >> end >> >> Compiled and linked using f2c and gcc form 1.08 works fine for me. Your quiet right mentioning compiling and linking, but I mean GO step. See yourself: >f2c test.f test.f: MAIN hex; >gcc test.c -lf77 -li77 -lm -lc >go32 a.out d:/dj/bin/go32.exe version 1.08 Copyright (C) 1991 DJ Delorie startio: error in format apparent state: unit 6 (unnamed) last format: (Z8) lately writing sequential formatted external IO Abort! This means there is bug in libi77.a, and if you look in its sources you will see there is just bug, i.e. there is actually no run-time code for Z format at all, by the way releasing of the O format has bug too. We have done right code and could send for anybody, but what can we do to include this in next release of f2c? With my kind regards Valery =============================================================== Dr. Valery Fine /LCTA Telex 911621 dubna su Fax (+7 095) 975 23 81 Joint Inst. for Nuclear Res. Email: fine AT main1 DOT jinr DOT dubna DOT su Head Post Office, PO Box 79 fine AT vxcern DOT cern DOT ch Moscow Russia