Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!fauern!forwiss.uni-passau.de!eva.fmi.uni-passau.de!iws9012 From: iws9012@eva.fmi.uni-passau.de (Thomas Opheys) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: DOS gcc (dj1bin) problems Message-ID: <1991Feb22.142316.1380@forwiss.uni-passau.de> Date: 22 Feb 91 14:23:16 GMT Sender: usenet@forwiss.uni-passau.de (USENET News System) Organization: University of Passau, W-Germany Lines: 63 Nntp-Posting-Host: eva.fmi.uni-passau.de You had problems with the file names. Understand that GNU C++ has come from the UNIX platform. In the README file you see that you have to tell the C compiler where to find the libraries, includes etc. Important is that every file name you use with GNU C has to use the "/" instead of the DOS-like "\". So if you want to compile c:\c\test.c, use "gcc c:/c/test.c"! The same is with the env- vironment variables GCCBIN, GCCLIB etc. Look at the README file. The example correctly uses the "/" character. Another problem you might have is the "parse error". I found out that the EOF character that nearly every DOS text file ends with produces this error. GCC won't compile any such file correctly. I wrote a little Turbo Pascal program that looks if a text file ends with the EOF character and then over- writes it with a space. program StripEOF; uses crt,dos; var MyFile : file of byte; b : byte; begin assign(MyFile,paramstr(1)); reset(MyFile); seek(MyFile,FileSize(MyFile)-1); read(MyFile,b); if b=26 then begin seek(MyFile,FileSize(MyFile)-1); b:=32; write(MyFile,b); end; close(MyFile); end. (Don't remember my program exactly but this should do it. Cou can write a batch file for editing ".c" files like @echo off editor %1.c stripEOF %1.c The cp commands in INSTALL.BAT have to be removed by "copy". The author surely mixed up UNIX and DOS. I ran into the same problems you did but when these were solved, the compiler works smooth. Perhaps you can help me, too: My machine lacks a 387 coprocessor and so the compiler refuses to compile programs that use real math. I tried a 387 emu- lation, FRANKE.387, but my computer crashed. Could anyone send me some good 387 emu that works with GNU C++? (thanks). I downloaded some more for GNU C++ from the site mentioned in the README file. The site mentioned there just allows you to GET the readme file where you can read that it changed its name. Don't know it exactly but try it. But it looks as if the next parts (headers and libraries, ...) are being posted to c.b.i.p right now... Thomas Opheys iws9012@eva.fmi.uni-passau.de ------------------------------------------------------------------------------- I like SLEDGE HAMMER. What's wrong with me? -------------------------------------------------------------------------------