Re: Large Unit number g77

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fabian Braennstroem wrote:

I just start programming in Fortran. From my professor I got  a
fortran-program which he used on a sgi. Now I try to get the program
running under linux (debian/woody (g77-3.0)).

I have no big problem compiling the sources, but when I start executing
it, I get an error like: 'illegal unit number'.
I think it is because of a couple large unit numbers. So I tried to fix
the 'gcc/libf2c/libI77/fio.h', but I can't find it!
Does anybody have an idea where to look?

In the source tree :-) Seriously, you can only change this if you build GCC/g77 from the source (and not if you just apt-get install g77 ...)
The built-in maximum unit number is 99.


P.S. What can I use for 'etime' and 'dtime' under Linux?

etime and dtime are supported - see the documentation:


http://gcc.gnu.org/onlinedocs/gcc-3.3.2/g77/DTime-Intrinsic--subroutine-.html#DTime%20Intrinsic%20(subroutine)

Hope this helps,

--
Toon Moene - mailto:toon@xxxxxxxxxxxxxxxxxxxx - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://gcc.gnu.org/fortran/ (under construction)


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux