apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@gmail.com>
Subject Re: How to use the sockets library of apr?
Date Thu, 30 Sep 2004 13:11:33 GMT
On Thu, 30 Sep 2004 16:53:02 +0530, Gaurav Gupta
<gaurav.gg.gupta@oracle.com> wrote:
> Hi,
> Am getting this error when creating executable for my code for a socket
> server programme. Kindly help.

I don't think this is the right way to do it, but it does seem to
work.  If somebody with the appropriate clue stick can help me out,
I'll try to write some doc to put at apr.apache.org for how to build
an apr application on Unix-like systems.  I looked but did not find

$ cat bldfoo

CC=`$APRCFG --cc`
CFLAGS=`$APRCFG --cflags`
CPPFLAGS=`$APRCFG --cppflags`
INCLUDES=`$APRCFG --includes`
LIBAPR=`$APRCFG --link-libtool --libs`
LIBTOOL=`$APRCFG --apr-libtool`

cmd="$CC -g -c $CFLAGS $CPPFLAGS $INCLUDES foo.c"
echo $cmd

cmd="$LIBTOOL --mode=link  $CC -o foo -g foo.o $LIBAPR"
echo $cmd

View raw message