- From: Lars Kellogg-Stedman <lars@cs.bu.edu>
- Date: Tue, 02 Mar 1999 15:16:39 -0500
- To: www-lib@w3.org
We've got some code here that uses a bunch of hand-rolled http routines. I'd like to replace these with libwww, but I'm running into problems trying to get off the ground with libwww. Starting with the most basic sample application from the libwww web pages: #include "WWWLib.h" int main() { HTLibInit("TestApp", "1.0"); HTLibTerminate(); return 0; } This doesn't actually compile :(. After adding the various #includes for stdio, stdlib, and sys/types.h, I'm seeing the following errors: cc -I/fs/wolery/include -I/fs/wolery/include -I/usr/local/include -c lu.c -o lu.o "/fs/wolery/include/w3c-libwww/HTDNS.h", line 74: warning(1204): declaration is not visible outside of function extern HTdns * HTDNS_add (HTList * list, struct hostent * element, ^ "/fs/wolery/include/w3c-libwww/HTHstMan.h", line 93: error(1070): incomplete type is not allowed SockA sock_addr; /* SockA is defined in wwwsys.h */ That's using Irix cc. I'd chalk it up to an idiosyncrasy of the MIPSPro compilers, but gcc gives similar errors: In file included from /fs/wolery/include/w3c-libwww/HTNet.h:61, from /fs/wolery/include/w3c-libwww/HTReq.h:75, from /fs/wolery/include/w3c-libwww/WWWCore.h:73, from /fs/wolery/include/w3c-libwww/WWWLib.h:75, from lu.c:4: /fs/wolery/include/w3c-libwww/HTDNS.h:75: warning: `struct hostent' declared inside parameter list /fs/wolery/include/w3c-libwww/HTDNS.h:75: warning: its scope is only this definition or declaration, /fs/wolery/include/w3c-libwww/HTDNS.h:75: warning: which is probably not what you want. In file included from /fs/wolery/include/w3c-libwww/HTInet.h:30, from /fs/wolery/include/w3c-libwww/WWWCore.h:339, from /fs/wolery/include/w3c-libwww/WWWLib.h:75, from lu.c:4: /fs/wolery/include/w3c-libwww/HTHstMan.h:93: field `sock_addr' has incomplete type So...am *I* missing something? It seems sort of early to be running into this sort of problem :). -- Lars -- Lars Kellogg-Stedman * lars@bu.edu * (617)353-5228 Department of Computer Science, Boston University
Received on Tuesday, 2 March 1999 15:16:40 UTC