[Top][All Lists]

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

Re: library search test fails, please help

From: Thomas Dickey
Subject: Re: library search test fails, please help
Date: Sun, 22 Feb 2009 17:10:04 -0500 (EST)

On Sun, 22 Feb 2009, Allan Caffee wrote:

AC_CHECK_LIB (AFAIK) is not intended to handle static libraries.  The
reason for this is that compilers handle static libraries quite
differently than shared object libraries.  Compilers treat static
libraries as a single big object file to be included along with all the
others.  For example to compile the test program you would use something

g++-mp-4.3 -o conftest -g -O2 -I/Users/aaragon/Lib/include 
/Users/aaragon/Lib/lib/cpputils.a conftest.cpp

you can _make_ a compiler do that, but it's not the usual way static libraries are used.

Thomas E. Dickey

reply via email to

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