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??? On 10/11/05, Ralf Wildenhues <[EMAIL PROTECTED]> wrote: > Hi Jack, > > * Jack Nguyen wrote on Tue, Oct 11, 2005 at 11:57:34PM CEST: > > On 10/11/05, Ralf Wildenhues <[EMAIL PROTECTED]> wrote: > > > * Jack Nguyen wrote on Tue, Oct 11, 2005 at 07:41:43PM CEST: > > > > after > > > > ./configure and make resulted in libfoo.la <http://libfoo.la>, i tried > > > > $libtool gcc -o test test.c libfoo.la <http://libfoo.la> > > > > gcc -o test test.c ./.libs/libfoo.a -L /src/dir/ -lmkl_lapack -lm > > > > /usr/bin/ld cannot find -lmkl_lapack > > > > How do you add -L /mkl_lapac/dir in either > > > > configure.ac<http://configure.ac>or > > > > Makefile.am <http://Makefile.am>. Obviously LD_FLAGS doesnt do it! > > > > > > Try LDFLAGS instead of LD_FLAGS: > > > > LDFLAGS is already defined in my configure.ac. In fact i use it to do > > AC_CHECK_LIB(mkl,some_func). the problem is when i try to test my > > libfoo.la, it cant find the library it libfoo.la depends on. the > > console output is > > $libtool gcc -o test test.c libfoo.la > > gcc -o test test.c ./.libs/libfoo.a -L /src/dir/ -lmkl_lapack -lm > > /usr/bin/ld cannot find -lmkl_lapack > > I want gcc to look into the -L /mkl/lapack/dir, not just /src/dir > > Please show contents of `libfoo.la' (dependency_libs should contain the > `-L..' addition). > > Please also show `./libtool --version', the configure.ac snippet around > where you `AC_CHECK_LIB(mkl..)', and the Makefile.am part concerning > libfoo.la. You do use Automake, right? If not, then please show > however else you generate libfoo.la. > > Cheers, > Ralf >
_______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool
