Mail Archives: djgpp/1999/09/03/07:33:46
Tommaso Mazzoni wrote:
>
> I have installed DJGPP because it supports the only fortran compiler
> around, g77.
>
> After successfully compiling my old fortran sources, I have found out
> that the resulting executable SOMETIMES works well, sometimes it
> doesn't. It's the first time that such a thing happens to me.
>
> The program reads some files, then performs some calculations and then
> prints out the results. But to have it work properly I have to run it
> four or five times in a row until a sensible output is printed.
> Otherwise I get a series of "random" numbers and also NAN etc.
>
> The input files are read correctly even when the results make no sense.
> The sources come from a UNIX machine where the same program runs
> correctly.
>
> Is it a memory allocation problem? I have no idea.
>
Perhaps a code snippet would be in order, though I imagine a fortran
newsgroup would be more help (as they would not only be familiar with
fortran, but most probably with g77 as well).
-Mike
- Raw text -