delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/20/10:46:15

Date: Sun, 20 Apr 1997 17:28:45 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Jason McCullough <mc8860 AT charon DOT backbone DOT ou DOT edu>
cc: djgpp AT delorie DOT com
Subject: Re: DJGPP behaves differently from GCC. Possible Bug? Help needed.......
In-Reply-To: <33565468.13125228@ounews.ou.edu>
Message-ID: <Pine.SUN.3.91.970420172802.578T-100000@is>
MIME-Version: 1.0

On Thu, 17 Apr 1997, Jason McCullough wrote:

> Thankfully, I turned this project in already.  But a part of the
> program that isn't graded still doesn't work.  I'm reading a P5 pgm
> image file in, and performing an edge detection operation on it, then
> dumping it out in P2 pgm format.  When I compile it on the University
> alphas here at school, it works just fine.  Compile it with DJGPP,
> exact same source code, and the edge detection outputs nothing but
> black pixels after 20k or so.  Rather cryptic.  Both DJGPP -v on my

I didn't take a good enough look at your code (too lengthy, sorry),
but in such cases the usual caveat is the text vs binary files issue.
Did you remember to include the binary I/O specifier in the streams
that read/write the P2 pgm format files?

- Raw text -


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