Subject: | |
From: | |
Reply To: | |
Date: | Tue, 18 Sep 2007 16:19:45 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Dear SL Users,
I have a (perhaps stupid) question. Some time ago I switched to SL 5.0
(from various SuSE distributions).
Now I've run into a problem with the compatibility of g77. On our
workstations we have SuSE (guess who's the sys admin ;-)) with
gcc version 3.3.5 20050117 (prerelease) (SUSE Linux)
On my laptop and on other machines in our institute, I have SL with
gcc version 3.4.6 20060404 (Red Hat 3.4.6-3)
In 99.9% of all cases there is no problem with my (rather simple) codes.
I can compile them without trouble. Only when I do some (either very
simple) I/O, an incompatibility occurs. It happens if I write to a file
and then read in the same file again within the same program. This
worked without trouble in the older gcc version, but creates weird
run-time errors in the new version:
invalid number: incomprehensible list input
apparent state: unit 1 named RW-total-tadmix4pi-6pi-om-phi-DY.dat
last format: list io
lately reading sequential formatted external IO
Aborted
Here, "RW-total-tadmix4pi-6pi-om-phi-DY.dat" is the file I write to disk
and then read it in again.
Of course it's not a big deal to rewrite the code that this is
re-reading not necessary. But, if someone knows a compiler switch or
the like so that the writing out and reading in of a file in the same
program works again, it would save me some time.
Cheers,
Hendrik.
--
Hendrik van Hees Texas A&M University
Phone: +1 979/845-1411 Cyclotron Institute, MS-3366
Fax: +1 979/845-1899 College Station, TX 77843-3366
http://cyclotron.tamu.edu/hees/ mailto:[log in to unmask]
|
|
|