Message-Id: <199809050354.XAA27237@delorie.com> Comments: Authenticated sender is From: "George Foot" To: richard AT wynne DOT demon DOT co DOT uk Date: Sat, 5 Sep 1998 04:52:07 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: gcc 2.7.2.1: Won't compile | or || symbols (really!) Reply-to: mert0407 AT sable DOT ox DOT ac DOT uk CC: djgpp AT delorie DOT com Precedence: bulk On 5 Sep 98 at 0:57, richard AT wynne DOT demon DOT co DOT uk wrote: > Just installed gcc 2.7.2.1 (from djgpp distribution). Believe it or > not, I can't get logical or bitwise OR (pipe symbol) to compile. Get > message "parse error before character 0335", 335 being the (octal) > ascii for the pipe character. For example, this won't compile: > > int main (int argc, char * argv[]) { > if((argc == 1) || (argc == 2)) { > return 1; > } else { > return o; > } > } > > Nothing wrong with my PC (Win 95, UK English setup), and my pipes > otherwise work fine. > > Can't contemplate coding without OR, so any ideas out there? 0335 is not the octal for the real pipe character. There are two (on UK setups, at least) -- Shift+\ and AltGr+`. The `real' one should be Shift+\, if you have your settings correct. To fix this I once fiddled around with codepages and the keyb utility, but now I just seem to have "keyb uk" in my autoexec.bat and it works fine. Make sure your system really is setup up correctly. If you get a choice, try a different code page; I think both 437 and 860 are quoted as being valid in the UK. What editor are you using? -- george DOT foot AT merton DOT oxford DOT ac DOT uk