public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Large Unit number g77
@ 2003-11-24 16:23 Fabian Braennstroem
  2003-11-24 20:55 ` Toon Moene
  0 siblings, 1 reply; 2+ messages in thread
From: Fabian Braennstroem @ 2003-11-24 16:23 UTC (permalink / raw)
  To: gcc-help

Hello everybody,

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?

Thanks and Greetings!
Fabian

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Large Unit number g77
  2003-11-24 16:23 Large Unit number g77 Fabian Braennstroem
@ 2003-11-24 20:55 ` Toon Moene
  0 siblings, 0 replies; 2+ messages in thread
From: Toon Moene @ 2003-11-24 20:55 UTC (permalink / raw)
  To: Fabian Braennstroem; +Cc: gcc-help

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@moene.indiv.nluug.nl - 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)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-11-24 20:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-24 16:23 Large Unit number g77 Fabian Braennstroem
2003-11-24 20:55 ` Toon Moene

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).