Hi Jack,

* Jack Nguyen wrote on Sat, Oct 15, 2005 at 01:42:55AM CEST:
> Hi,
> I have solved the previous problem and have successfully build
> libfoo.la but not m encountering another.
> I have src/foo and src/bar where a function bar_func.c is using a foo_func.c
> and thus #include foo_func.h. But the problem is foo_func.h is not
> installed in includedir until user types make install. Thus my
> compiler is throwing an error that it cant find foo_func.h when it is
> trying to compile bar_func.c. What to do???

This is not a libtool problem.  You need to add some include paths to
your preprocessor flags.  If you use Automake, something like
  AM_CPPFLAGS = -I../include
or
  AM_CPPFLAGS = -I$(srcdir)/../include

in the Makefile.am where bar_func.c is compiled, and the path adjusted 
to however your source tree is laid out.

The Automake and Autoconf documentation, and this tutorial
http://www-src.lip6.fr/homepages/Alexandre.Duret-Lutz/autotools.html
know this and lots more useful info.

Cheers,
Ralf


_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to