This is the mail archive of the cygwin@sources.redhat.com 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]

"parse error" in cygwin.h


In compiling GNUProlog, I encountered the following output
from make:

______________

....
make[1]: Entering directory `/home/newarchives/GNUProlog/gprolog-1.2.1/src/TopCo
mp'
make[1]: Nothing to be done for `first'.
make[1]: Leaving directory `/home/newarchives/GNUProlog/gprolog-1.2.1/src/TopCom
p'
make[1]: Entering directory `/home/newarchives/GNUProlog/gprolog-1.2.1/src/Engin
ePl'
gplc -c -C '-O3 -finline-functions -fomit-frame-pointer' machine.c
In file included from machine.c:49:
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/sys/cygwin.h:46: pars
e error before `cygwin_logon_user'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/sys/cygwin.h:46: warn
ing: data definition has no type or storage class
compilation failedI

__________________

Personally, I can't see anything wrong with cygwin.h.    (Actually, there are
two versions  of cygwin.h, one in /usr/include/sys, and one in
/usr/i686-pc-cygwin/include/sys.  The one in question seems to
actually be the one in /usr/include/sys, since the other one doesn't
have 46 lines, and doesn't have 'cygwin_longon_user' in it.  )

/usr/include/sys/cygwin.h is dated August 3.  (The other one is dated
Feb 29.)

I swear I haven't touched the .h files.  :-).

A number of other files with #include <sys/xxx> statements did compile
successfully, and in processing machine.c, it got through a few
of these #include statements before the error occurred, so I don't
think this is a generic problem like binary vs. text.

Thanks,

John Veman
john.velman@hsc.com
one in /usr/lib/


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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