Date: Thu, 8 Aug 1996 00:16:38 -0700 (PDT) From: Allen Pouratian To: Eli Zaretskii cc: djgpp AT delorie DOT com Subject: Re: file "read" DOS vs. UNIX In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII > > If the above doesn't help, you will have to debug the reason for the > segfaults (there's always a chance that there is a bug in the program that > goes undetected on other platforms, or a bug in `read' or the library > functions it calls. > It works now. The reason it didn't is that the makefile needs a tad of tweeking (delete all mention of the tif_unix.o, after following the instructions in the contrib directory of the Leffler TIFF distribution) and then it runs flawlessly! Otherwise, the standard unix file reading function calls were used, which caused the error and the seg fault. Thanks for the in depth reply, Allen Pouratian P.S. Any particular reason my program might run differently under gdb than when simply executed by the DOS shell besides me not clearing stack space properly before using it?