Mail Archives: djgpp/1997/07/14/11:52:08
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 -