Mail Archives: djgpp/1997/04/20/10:46:15
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 -