[www-lib] <none>

F
I'm trying to compile some example code from the www-lib pages, but I
can't seem to get it to work

[root@mail code]# gcc chunk.c
In file included from WWWUtil.h:47,
                 from WWWLib.h:47,
                 from chunk.c:1:
HTUtils.h:174: parse error before `size_t'
HTUtils.h:184: parse error before `size_t'
In file included from HTUtils.h:337,
                 from WWWUtil.h:47,
                 from WWWLib.h:47,
                 from chunk.c:1:
HTMemory.h:44: parse error before `size'
HTMemory.h:45: parse error before `count'
HTMemory.h:46: parse error before `size_t'
HTMemory.h:82: parse error before `size'
In file included from HTLib.h:21,
                 from WWWCore.h:48,
                 from WWWLib.h:59,
                 from chunk.c:1:
HTUser.h:108: parse error before `HTUserProfile_timezone'
HTUser.h:108: warning: data definition has no type or storage class
HTUser.h:109: parse error before `time_t'
In file included from HTAnchor.h:47,
                 from HTFormat.h:59,
                 from HTReq.h:57,
                 from WWWCore.h:59,
                 from WWWLib.h:59,
                 from chunk.c:1:
HTResponse.h:77: parse error before `HTResponse_retryTime'
HTResponse.h:77: warning: data definition has no type or storage class
HTResponse.h:78: parse error before `time_t'
HTResponse.h:219: parse error before `HTResponse_maxAge'
HTResponse.h:219: warning: data definition has no type or storage class
In file included from HTFormat.h:59,
                 from HTReq.h:57,
                 from WWWCore.h:59,
                 from WWWLib.h:59,
                 from chunk.c:1:
HTAnchor.h:470: parse error before `HTAnchor_date'
HTAnchor.h:470: warning: data definition has no type or storage class
HTAnchor.h:471: parse error before `date'
HTAnchor.h:479: parse error before `HTAnchor_lastModified'
HTAnchor.h:479: warning: data definition has no type or storage class
HTAnchor.h:480: parse error before `lm'
HTAnchor.h:503: parse error before `HTAnchor_age'
HTAnchor.h:503: warning: data definition has no type or storage class
HTAnchor.h:504: parse error before `age'
HTAnchor.h:510: parse error before `HTAnchor_expires'
HTAnchor.h:510: warning: data definition has no type or storage class
HTAnchor.h:511: parse error before `exp'
In file included from HTChannl.h:32,
                 from HTIOStream.h:27,
                 from HTTrans.h:46,
                 from HTNet.h:46,
                 from HTReq.h:60,
                 from WWWCore.h:59,
                 from WWWLib.h:59,
                 from chunk.c:1:
HTHost.h:334: parse error before `HTHost_persistTimeout'
HTHost.h:334: warning: data definition has no type or storage class
HTHost.h:335: parse error before `timeout'
HTHost.h:341: parse error before `time_t'
HTHost.h:342: parse error before `HTHost_persistExpires'
HTHost.h:342: warning: data definition has no type or storage class
HTHost.h:390: parse error before `size_t'
HTHost.h:391: parse error before `size_t'
HTHost.h:392: parse error before `HTHost_remainingRead'
HTHost.h:392: warning: data definition has no type or storage class
In file included from HTIOStream.h:27,
                 from HTTrans.h:46,
                 from HTNet.h:46,
                 from HTReq.h:60,
                 from WWWCore.h:59,
                 from WWWLib.h:59,
                 from chunk.c:1:
HTChannl.h:46: parse error before `FILE'
HTChannl.h:75: parse error before `*'
HTChannl.h:75: warning: data definition has no type or storage class
HTChannl.h:76: parse error before `FILE'
In file included from HTTrans.h:46,
                 from HTNet.h:46,
                 from HTReq.h:60,
                 from WWWCore.h:59,
                 from WWWLib.h:59,
                 from chunk.c:1:
HTIOStream.h:82: parse error before `size_t'
In file included from HTNet.h:50,
                 from HTReq.h:60,
                 from WWWCore.h:59,
                 from WWWLib.h:59,
                 from chunk.c:1:
HTDNS.h:44: parse error before `timeout'
HTDNS.h:45: parse error before `HTDNS_timeout'
HTDNS.h:45: parse error before `timeout'
HTDNS.h:45: warning: data definition has no type or storage class
HTDNS.h:58: warning: `struct hostent' declared inside parameter list
HTDNS.h:58: warning: its scope is only this definition or declaration,
which is probably not what you want.
In file included from WWWCore.h:59,
                 from WWWLib.h:59,
                 from chunk.c:1:
HTReq.h:682: parse error before `HTRequest_date'
HTReq.h:682: warning: data definition has no type or storage class
HTReq.h:683: parse error before `time_t'
In file included from WWWCore.h:131,
                 from WWWLib.h:59,
                 from chunk.c:1:
HTWWWStr.h:127: parse error before `*'
HTWWWStr.h:136: parse error before `*'
HTWWWStr.h:148: parse error before `HTParseTime'
HTWWWStr.h:148: warning: data definition has no type or storage class
In file included from WWWCore.h:158,
                 from WWWLib.h:59,
                 from chunk.c:1:
HTMemLog.h:27: parse error before `size_t'
HTMemLog.h:28: parse error before `size_t'
In file included from HTInet.h:22,
                 from WWWCore.h:270,
                 from WWWLib.h:59,
                 from chunk.c:1:
HTHstMan.h:53: parse error before `time_t'
HTHstMan.h:53: warning: no semicolon at end of struct or union
HTHstMan.h:62: parse error before `expires'
HTHstMan.h:62: warning: data definition has no type or storage class
HTHstMan.h:93: parse error before `remainingRead'
HTHstMan.h:93: warning: data definition has no type or storage class
HTHstMan.h:99: parse error before `}'
In file included from WWWCore.h:270,
                 from WWWLib.h:59,
                 from chunk.c:1:
HTInet.h:74: parse error before `HTGetTimeZoneOffset'
HTInet.h:74: warning: data definition has no type or storage class
In file included from WWWHTTP.h:140,
                 from chunk.c:2:
HTCookie.h:87: parse error before `HTCookie_setExpiration'
HTCookie.h:87: parse error before `time_t'
HTCookie.h:87: warning: data definition has no type or storage class
HTCookie.h:88: parse error before `HTCookie_expiration'
HTCookie.h:88: warning: data definition has no type or storage class
HTCookie.h:94: parse error before `HTCookie_setSecure'
HTCookie.h:94: warning: data definition has no type or storage class
In file included from WWWFile.h:59,
                 from HTInit.h:48,
                 from WWWInit.h:38,
                 from chunk.c:3:
HTMulti.h:49: warning: `struct stat' declared inside parameter list
In file included from WWWNews.h:70,
                 from HTInit.h:52,
                 from WWWInit.h:38,
                 from chunk.c:3:
HTNDir.h:66: parse error before `time_t'
In file included from WWWStream.h:55,
                 from HTInit.h:114,
                 from WWWInit.h:38,
                 from chunk.c:3:
HTFWrite.h:34: parse error before `FILE'
chunk.c: In function `printer':
chunk.c:7: `stdout' undeclared (first use in this function)
chunk.c:7: (Each undeclared identifier is reported only once
chunk.c:7: for each function it appears in.)
chunk.c: In function `tracer':
chunk.c:12: `stderr' undeclared (first use in this function)
chunk.c: At top level:
HTHstMan.h:85: storage size of `sock_addr' isn't known

Can anyone help me out?

Thanks
Nick Le Mouton

Received on Tuesday, 25 June 2002 03:13:05 UTC