delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/14/11:52:08

Date: Mon, 14 Jul 1997 11:51:48 -0400 (EDT)
From: "Art S. Kagel" <kagel AT ns1 DOT bloomberg DOT com>
To: Brian Barlow <brian AT brianb DOT u-net DOT com>
Cc: djgpp AT delorie DOT com
Subject: Re: Compilation problem
In-Reply-To: <33c789d7.14193906@news.u-net.com>
Message-Id: <Pine.D-G.3.91.970714114841.10079E-100000@dg1>
Mime-Version: 1.0

On Sat, 12 Jul 1997, Brian Barlow wrote:

> I've just installed the DJGPP compiler and the following program won't
> compile.
> 
> 
> int main (void)
> {
> 
>      int c=0x50;
> 
>      c = c¦0x04;
> 
>      return 0;
> 
> }
> 
> The compiler reports :
> 
> GNU C version 2.7.2.1 (80386, BSD syntax) compiled by GNU C version
> 2.7.2.1.
> test.c: In function `main':
> test.c:7: parse error before character 0335
> 
> 
> Does anyone know why this would be happnening.  The 0335 character is
> the | OR symbol.

The | OR symbol should be char 0174 (0x7c)!  That 0335 is an IBM graphic 
box drawing character that just looks like the keyboard vertical bar 
character!  (Probably your windows font makes these difficult to 
distinguish, assuming you are running in a DOS box).

Art S. Kagel, kagel AT bloomberg DOT com

- Raw text -


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