apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Garrett Rooney <roo...@electricjellyfish.net>
Subject Re: compile/link of apr based programs
Date Tue, 17 Sep 2002 17:20:35 GMT
Doug MacEachern wrote:
> i'm seeing bits-n-pieces of what the current "proper" way of compiling and 
> linking an apr based program is.  would be very helpful to see the 
> complete steps given the simple program below.  or is it already 
> documented somewhere?
> i tried the following:
> CFLAGS=`$APR_CONFIG --cflags --includes`
> LD_FLAGS=`$APR_CONFIG --libs --ldflags --link-ld`
> gcc $CFLAGS $LD_FLAGS -o apr-test apr-test.c
> but -laprutil-0 is missing.
> i add that, then find i also need to add -L/usr/lib -lgdbm -lexpat -ldb

you asked for the flags to link against apr, not to link against 
apr-util.  there's also an apu-config, i imagine you should also be 
using that.


View raw message