From: Vik Heyndrickx Newsgroups: comp.os.msdos.djgpp Subject: rebuilding gcc - fix-header.exe fails on DOS systems. Date: Tue, 26 Aug 1997 11:13:51 +0200 Organization: University of Ghent, Belgium Lines: 18 Message-ID: <34029E4F.4E82@rug.ac.be> NNTP-Posting-Host: eduserv1.rug.ac.be Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi, I tried to recompile the development version of pgcc 2.7.2 (some recent version) and I ran into the following problem: There exists a fix-header program which checks the standard header files for their ANSI and POSIX complianceness and modifies them (while copying them into an include/ directory). I noticed that some crap is inserted into this header files which is more than likely caused by the CR+LF translation. So I ran dtou on everty header file, but this does not solve the problem. Then I put _fmode = O_BINARY; at the beginning of the main function. This solves it, but I cannot really pinpoint what exactly is causing the trouble nor find a more elegant solution. Someone any idea? -- +----------------+ | Vik Heyndrickx | +----------------+