delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/05/09:45:54

From: Richard DOT Wynne AT delorie DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Re: gcc 2.7.2.1: SOLUTION
Date: Sat, 05 Sep 1998 13:37:02 GMT
Message-ID: <35f13d46.2344471@news.demon.co.uk>
References: <35f08a2b DOT 895968 AT news DOT demon DOT co DOT uk>
NNTP-Posting-Host: wynne.demon.co.uk
Lines: 40
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Sat, 05 Sep 1998 00:57:27 GMT, 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?
>
>TIA,
>
>Richard
>richard AT wynne DOT demon DOT co DOT uk

OK, Thanks to respondents, the answer is (for UK users anyway)

config.sys:
device=c:\windows\COMMAND\display.sys con=(ega,,1)
Country=044,437,c:\windows\COMMAND\country.sys

autoexec.bat:
mode con codepage prepare=((437) c:\windows\COMMAND\ega.cpi)
mode con codepage select=437
keyb uk,,c:\windows\COMMAND\keyboard.sys

Anyway, the above works, I haven't looked too deep into it!

The "return o" was a typo.
Richard Wynne

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019