Mail Archives: djgpp/1998/09/04/23:57:29
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
- Raw text -