W3C home > Mailing lists > Public > www-lib@w3.org > January to March 1997

Re: need a little help

From: <jose.kahan@w3.org>
Date: Tue, 4 Feb 1997 22:42:23 +0100 (MET)
Message-Id: <199702042142.WAA23536@tuvalu.inrialpes.fr>
To: groland@balu.sch.bme.hu (Gecse Roland)
Cc: www-lib@w3.org
Hi Roland,

In our previous episode, Gecse Roland said:
> 
> Hi!
> 
> After running both configure and make, the library and the other programs
> seem to compiled well since I got the executables. But when I try to
> compile eg. libapp_1.c on my own, the compilation brakes while
> preprocessing the included header files. As if the .h-files were not
> correct. I know that's not the case, but what am I doing wrong?
> 
> I tried:
> 
> gcc -o libapp1 -I/usr/local/w3c-libwww-5.0a/Library/src libapp_1.c -lwww
> 

libwww 5.0a utilises autoconf. This creates a file called config.h,
which seems to be lacking in your gcc command line. Here's how
to proceed:

1) Find the directory where that file is (it should be in the place
where you typed ./configure).

2) Add to your command line a -I/that/directory/name

3) Add a -DHAVE_CONFIG_H to your command line too, so that this file
gets used.

This should give you a command file close to the following:

gcc -o libapp1 -DHAVE_CONFIG_H -I/that/directory/name -I/usr/local/w3c-libwww-5.0a/Library/src libapp_1.c -lwww

In case of doubt, go to the Library/Examples directory and see what the
Makefile there does (e.g., try a make -n).

Hope this helps,

-Jose

>

is needed for the compilation.  which. You 
need to add two things to
> Somebody please help me!
> 
> Thanks:
> 
> Roland Gecse.
> 
> 
> 
Received on Tuesday, 4 February 1997 16:41:25 GMT

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