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

Dear,

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.

Martin.

好心分手,上@次流淚,明年今日,孤兒仔...
火速下載至In手機鈴聲
Download the HOTTEST ringtones from Yahoo!
Received on Thursday, 29 August 2002 06:53:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:42 GMT