W3C home > Mailing lists > Public > www-lib@w3.org > July to September 2002

netdb.h parse error(libwww)

From: Martin Chan <mar4daisy@yahoo.com.hk>
Date: Thu, 29 Aug 2002 06:39:47 -0400 (EDT)
Message-ID: <20020829103945.98533.qmail@web21201.mail.yahoo.com>
To: www-lib@w3.org


I encounter the following error while compiling my c program in Unix server:

(My c program includes wwwsys.h only)

gcc -DSOLARIS -DRELEASE5 -PREDEF -I /usr/local/include/w3c-libwww -DHAVE_CONFIG_H -O -c test_app.c `libwww-config --libs`

The following error message appears.

In file included from /usr/local/include/w3c-libwww/wwwsys.h:902,
                 from /usr/local/include/w3c-libwww/WWWUtil.h:48,
                 from cf_martin1.c:23:
/usr/include/netdb.h:126: parse error before '.' token
/usr/include/netdb.h:130: parse error before '}' token

I have checked my program for syntax and it's no problem.

Is that related to my compilation command?

Thanks for your reply.


Download the HOTTEST ringtones from Yahoo!
Received on Thursday, 29 August 2002 06:53:47 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:55 UTC