This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Backslash (stray) not treated correctly by gcc


After successful installation of cygwin 1.1.0, I tried to compile a very
simple program beginning with

#include <stdio.h>

but gcc complains about the following structure from the sys/reent.h file
included by stdio.h:

#define _REENT_INIT(var) \
  { 0, &var.__sf[0], &var.__sf[1], &var.__sf[2], 0, "", 0, "C", \
    0, NULL, NULL, 0, NULL, NULL, 0, NULL, { {1, NULL, "", \
    { 0,0,0,0,0,0,0,0}, 0 } } }

The first error message is

s/reent.h:212: parse error before `{'

which refers to the second line of the above structure.  Obviously the
backslash character is not treated correctly.  I get a similar error
somewhere in the stdio.h file itself, again backslash not recognized as it

#define	__sputc(c, p) \
	(--(p)->_w < 0 ? \

dio.h:269: parse error before `--'

Any fix for this ?

Thanks much,


Want to unsubscribe from this list?
Send a message to

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]