libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: linker cant locate a 3rd party lib


From: Ralf Wildenhues
Subject: Re: linker cant locate a 3rd party lib
Date: Tue, 18 Oct 2005 09:21:25 +0200
User-agent: Mutt/1.5.11

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]