Messages in this thread | | | Date | Tue, 7 Sep 1999 15:53:05 -0400 (EDT) | From | "Richard B. Johnson" <> | Subject | Re: 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/
| |