Date: Sun, 20 Apr 1997 17:28:45 +0300 (IDT) From: Eli Zaretskii To: Jason McCullough 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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?