lkml.org 
[lkml]   [1999]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: RH6.0 C compiler doesn't recognize "\"
On Tue, 7 Sep 1999, WANG,YIDING (HP-SanJose,ex1) wrote:

> The C compiler in RH6.0 (Linux 2.2.5-15) doesn't like back slash "\" in the
> header file for the continued lines. Does anyone know how to make this
> compiler take this standard "\" as acceptible symbol for continued lines?
>
> Many thank!
>

It's the gcc compiler. When it doesn't like '\' it generally means that
there are additional characters (tabs or spaces) after the '\'.

#define PRINT\
puts("Hello world!")

main()
{
PRINT;
}

xxx.c:3: warning: missing white space after `#define PRINT'
xxx.c:4: parse error before string constant
xxx.c: In function `main':
xxx.c:9: stray '\' in program

Just make sure that the '\' is the last character on the line and
it will work just fine.


Cheers,
Dick Johnson
**** FILE SYSTEM WAS MODIFIED ****
Penguin : Linux version 2.3.13 on an i686 machine (400.59 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.052 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site