netdb.h parse error(libwww)

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.

¦n¤ß¤À¤â¡A¤W¤@¦¸¬y²\¡A©ú¦~¤µ¤é¡A©t¨à¥J...
¤õ³t¤U¸ü¦ÜIn¤â¾÷¹aÁn
Download the HOTTEST ringtones from Yahoo!

Received on Thursday, 29 August 2002 06:53:47 UTC