delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/02/13:15:12

From: Tommaso Mazzoni <tmazzoni AT etruria DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Program has different outputs!
Date: Thu, 02 Sep 1999 16:27:58 +0200
Organization: TIN
Lines: 35
Message-ID: <37CE896E.985BA87F@etruria.com>
NNTP-Posting-Host: a-ge9-27.tin.it
Mime-Version: 1.0
X-Mailer: Mozilla 4.6 [en] (Win98; I)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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.

Please help me.
Tommaso Mazzoni,
Italy.


-- 
---------------------------------
Tommaso Mazzoni
Etruria Technology S.r.l.
via Trento, 9C/B
16145 Genova - ITALY

Phone:		+390-10-314204	
Fax:		+390-182-582185
Mobile:		+39-347-7600813
---------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019