delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/03/06:27:34

From: Martin Laws <martin DOT laws AT bt DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Newbie question - using || operator
Date: Wed, 03 Mar 1999 10:49:37 +0000
Organization: BT Labs, Martlesham Heath, Ipswich, UK
Lines: 38
Message-ID: <36DD13C1.5BF6D2B6@bt.com>
References: <36DD0D43 DOT 7911201B AT bt DOT com> <36DD7FD0 DOT 2AD4 AT gec DOT nospam DOT com>
NNTP-Posting-Host: pc68bf.btlabs.bt.co.uk
Mime-Version: 1.0
X-Mailer: Mozilla 4.5 [en] (Win95; I)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Edward,

Thanks for the reply - I have just edited the file with notepad (as
requested) and it now compiles OK!
It seems that RHIDE substitutes the normal | character for some control
code (^Y) which then causes the compiler to have problems.
Is there anyway that I can get RHIDE to use the correct character or do I
have to manually edit all source files in notepad afterwards just so that
they will compile OK.

Anyway thanks for the help

Martin


Edward Hill wrote:

> Martin Laws wrote:
> : Has anyone had problems compiling simple programs which use the
> logical
> : OR
> : ('||') operator?
> :
> [chop]
>
> : When I try to compile it, gcc comes up with a parse error on the "if"
> : statement line
> : "parse error before character 0335".
> : The program was entered using RHIDE and I have checked to see if the
> : "||" characters look OK by using DOS EDIT (they seem to look OK ).
>
> I find that with my keyboard mapping the | comes out under dos edit
> it looks on the key with a break in it, this is not the same
> as the | and therefore generates a compiler error, pop back into
> windows edit the file and add a || in notepad and see if that works.
>
> Ed Hill

- Raw text -


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