This is the mail archive of the cygwin@cygwin.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 errors in winnt.h and winbase.h



I have installed cygwin on my win2000 machine. When I use 'make'  to compile
my source code.I get the following errors.  Is there any patch that I need
to download.

Please help
Thanks

$ make all
make -C common
make[1]: Entering directory `/home/Administrator/cowmac/common'
/usr/bin/gcc -DDEMO -g -w -DDEBUG -D__OPNET__ -DHOST_PC_INTEL_WIN32 -I. -I..
-c -o timer.o timer.c
In file included from /usr/include/w32api/windef.h:145,
                 from C:/Program files/opnet/7.0.B/sys/include/vos.h:52,
                 from C:/Program files/opnet/7.0.B/sys/include/opnet.h:16,
                 from ../common/opnet_vars.h:4,
                 from timer.c:20:
/usr/include/w32api/winnt.h:1704: parse error before `_ANONYMOUS_STRUCT'
/usr/include/w32api/winnt.h:1707: parse error before `}'
/usr/include/w32api/winnt.h:1709: parse error before `}'
/usr/include/w32api/winnt.h:1710: parse error before `*'
/usr/include/w32api/winnt.h:1712: parse error before `_ANONYMOUS_STRUCT'
/usr/include/w32api/winnt.h:1714: conflicting types for `HighPart'
/usr/include/w32api/winnt.h:1706: previous declaration of `HighPart'
/usr/include/w32api/winnt.h:1715: parse error before `}'
/usr/include/w32api/winnt.h:1716: conflicting types for `QuadPart'
/usr/include/w32api/winnt.h:1708: previous declaration of `QuadPart'
/usr/include/w32api/winnt.h:1717: parse error before `}'
/usr/include/w32api/winnt.h:1718: parse error before `*'
/usr/include/w32api/winnt.h:1719: parse error before `LUID'
/usr/include/w32api/winnt.h:1722: parse error before `LUID'
/usr/include/w32api/winnt.h:1724: parse error before `}'
/usr/include/w32api/winnt.h:1726: parse error before
`LUID_AND_ATTRIBUTES_ARRAY'

/usr/include/w32api/winnt.h:1727: parse error before `*'
/usr/include/w32api/winnt.h:1731: parse error before `LUID_AND_ATTRIBUTES'
/usr/include/w32api/winnt.h:1777: parse error before `LUID'
/usr/include/w32api/winnt.h:1780: parse error before `LUID'
/usr/include/w32api/winnt.h:1782: parse error before `ModifiedId'
/usr/include/w32api/winnt.h:1783: parse error before `TokenSource'
/usr/include/w32api/winnt.h:1800: parse error before `LUID_AND_ATTRIBUTES'
/usr/include/w32api/winnt.h:1804: parse error before `LUID'
/usr/include/w32api/winnt.h:1806: parse error before `ExpirationTime'
/usr/include/w32api/winnt.h:1813: parse error before `ModifiedId'
/usr/include/w32api/winnt.h:1831: `TokenSource' redeclared as different kind
of
symbol
/usr/include/w32api/winnt.h:1783: previous declaration of `TokenSource'
/usr/include/w32api/winnt.h:1831: `TokenType' redeclared as different kind
of sy
mbol
/usr/include/w32api/winnt.h:1807: previous declaration of `TokenType'
/usr/include/w32api/winnt.h:1845: parse error before `LARGE_INTEGER'
/usr/include/w32api/winnt.h:1879: parse error before `LARGE_INTEGER'
/usr/include/w32api/winnt.h:1884: parse error before `}'
/usr/include/w32api/winnt.h:1908: parse error before `LARGE_INTEGER'
/usr/include/w32api/winnt.h:1910: parse error before `}'
/usr/include/w32api/winnt.h:2242: parse error before `_ANONYMOUS_UNION'
/usr/include/w32api/winnt.h:2245: parse error before `}'
/usr/include/w32api/winnt.h:2248: parse error before `}'
/usr/include/w32api/winnt.h:2301: parse error before `_ANONYMOUS_UNION'
/usr/include/w32api/winnt.h:2304: parse error before `}'
/usr/include/w32api/winnt.h:2309: parse error before `}'
/usr/include/w32api/winnt.h:2337: syntax error before `typedef'
/usr/include/w32api/winnt.h:2338: parse error before `_ANONYMOUS_UNION'
/usr/include/w32api/winnt.h:2341: parse error before `:'
/usr/include/w32api/winnt.h:2345: parse error before `}'
/usr/include/w32api/winnt.h:2346: syntax error before `union'
/usr/include/w32api/winnt.h:2348: parse error before `_ANONYMOUS_STRUCT'
/usr/include/w32api/winnt.h:2350: parse error before `:'
/usr/include/w32api/winnt.h:2352: parse error before `}'
/usr/include/w32api/winnt.h:2353: parse error before `}'
/usr/include/w32api/winnt.h:2466: parse error before `_ANONYMOUS_UNION'
/usr/include/w32api/winnt.h:2469: parse error before `}'
/usr/include/w32api/winnt.h:2472: parse error before `}'
/usr/include/w32api/winnt.h:2477: parse error before `_ANONYMOUS_UNION'
/usr/include/w32api/winnt.h:2484: parse error before `}'
/usr/include/w32api/winnt.h:2495: parse error before `}'
In file included from C:/Program files/opnet/7.0.B/sys/include/vos.h:53,
                 from C:/Program files/opnet/7.0.B/sys/include/opnet.h:16,
                 from ../common/opnet_vars.h:4,
                 from timer.c:20:
/usr/include/w32api/winbase.h:777: parse error before `LARGE_INTEGER'
/usr/include/w32api/winbase.h:780: parse error before `}'
/usr/include/w32api/winbase.h:810: parse error before `_ANONYMOUS_UNION'
/usr/include/w32api/winbase.h:812: syntax error before `struct'
/usr/include/w32api/winbase.h:815: conflicting types for `DUMMYSTRUCTNAME'
/usr/include/w32api/winnt.h:2342: previous declaration of `DUMMYSTRUCTNAME'
/usr/include/w32api/winbase.h:816: parse error before `}'
/usr/include/w32api/winbase.h:826: parse error before `}'
/usr/include/w32api/winbase.h:900: parse error before `_ANONYMOUS_UNION'
/usr/include/w32api/winbase.h:904: parse error before `}'
/usr/include/w32api/winbase.h:911: parse error before `}'
/usr/include/w32api/winbase.h:912: parse error before `}'
/usr/include/w32api/winbase.h:928: parse error before `DWORD'
/usr/include/w32api/winbase.h:955: parse error before `PPRIVILEGE_SET'
/usr/include/w32api/winbase.h:965: parse error before `PTOKEN_PRIVILEGES'
/usr/include/w32api/winbase.h:1109: parse error before `va_list'
/usr/include/w32api/winbase.h:1110: parse error before `va_list'
/usr/include/w32api/winbase.h:1152: parse error before `PULARGE_INTEGER'
/usr/include/w32api/winbase.h:1153: parse error before `PULARGE_INTEGER'
/usr/include/w32api/winbase.h:1304: parse error before
`LPPROCESS_HEAP_ENTRY'
/usr/include/w32api/winbase.h:1363: parse error before `PLUID'
/usr/include/w32api/winbase.h:1364: parse error before `PLUID'
/usr/include/w32api/winbase.h:1365: parse error before `PLUID'
/usr/include/w32api/winbase.h:1366: parse error before `PLUID'
/usr/include/w32api/winbase.h:1395: parse error before `PPRIVILEGE_SET'
/usr/include/w32api/winbase.h:1396: parse error before `PPRIVILEGE_SET'
/usr/include/w32api/winbase.h:1397: parse error before `PPRIVILEGE_SET'
/usr/include/w32api/winbase.h:1398: parse error before `PPRIVILEGE_SET'
/usr/include/w32api/winbase.h:1422: parse error before `PPRIVILEGE_SET'
/usr/include/w32api/winbase.h:1423: parse error before `PPRIVILEGE_SET'
/usr/include/w32api/winbase.h:1424: parse error before `PPRIVILEGE_SET'
/usr/include/w32api/winbase.h:1515: parse error before `*'
In file included from ../phy/phy.h:12,
                 from ../data/cct.h:13,
                 from ../common/opnet_vars.h:7,
                 from timer.c:20:
../common/common.h:20: parse error before `1'
make[1]: *** [timer.o] Error 1
make[1]: Leaving directory `/home/Administrator/cowmac/common'
make: *** [cowmac.o] Error 2


-----------------------------------------------------------
Priya Krishnan
Cowave Networks
priya@cowave.com
510-657-0612 Xn 115
------------------------------------------
Wireless is the Way to Go
------------------------------------------



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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