Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!linac!att!ucbvax!pasteur!roma.berkeley.edu!splin From: splin@roma.berkeley.edu (Steven Lin) Newsgroups: comp.binaries.ibm.pc.d Subject: djgcc: Parse error before character 032? Message-ID: <12238@pasteur.Berkeley.EDU> Date: 22 Mar 91 06:23:09 GMT Sender: news@pasteur.Berkeley.EDU Reply-To: splin@roma.berkeley.edu (Steven Lin) Organization: U.C. Berkeley -- ERL Lines: 22 I probably missed the discussion on this, but I tried to compile the "hello world" program using gcc hello.c where hello.c is: #include main() { printf("hello world\n"); } and got the error listed in the subject. The error doesn't occur if I type in the program using copy con hello.c but it does occur if I use a word processor (vi and Wordstar) to create hello.c. Evidently, the word processor is adding some extra characters to the end of the file before writing to disk and gcc is choking on this. Assuming that I can't prevent the word processor from adding these characters, how does one eliminate this error? If this is a bug, is there a fix for it available?