Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!cs.umn.edu!cybrspc!roy From: roy%cybrspc@cs.umn.edu (Roy M. Silvernail) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: djgcc: Parse error before character 032? Message-ID: Date: 25 Mar 91 01:20:50 GMT Article-I.D.: cybrspc.F0BcZ1w163w References: Organization: Villa CyberSpace, Minneapolis, MN Lines: 23 valley@uchicago (Doug Dougherty) writes: > splin@roma.berkeley.edu (Steven Lin) writes: > > > >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 [...] > > This is the ^Z problem, right? Funny, my version of vi doesn't > put no steenkin' ^Z's at the end of my files. > > Either find an editor that doesn't put out ^Z's, or find a utility > to fix ^Z'd files. I have one if you don't find one elsewhere. I think your solution has its phase inverted. He needs a file _with_ a ^Z appended. Since that's the only way to terminate a 'copy con foo', there must be a ^Z at the end of the file that worked. -- Roy M. Silvernail -- roy%cybrspc@cs.umn.edu - OR- cybrspc!roy@cs.umn.edu perl -e '$x = 1/20; print "Just my \$$x! (adjusted for inflation)\n"' [space reserved for clever quote]{mail your submissions}