You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Michael Wallner <mi...@iworks.at> on 2004/08/18 15:45:19 UTC
what to link/include for apr_md5_encode()
Hi,
I don't know if this is the right place to ask,
if not please point me to the right one;
and please be gentle - I'm a C novice ;)
I wonder what to link and include to be able
to call apr_md5_encode()?
I tried libapr-0.so and apr_md5.h but got
"relocation error - undefined symbol" as result... :-(
Many thanks,
--
Michael - < mike(@)php.net >
Re: what to link/include for apr_md5_encode()
Posted by Michael Wallner <mi...@iworks.at>.
Hi Joe Orton, you wrote:
> `apr-config --ldflags --libs --link-ld`
>
> to link against both libapr and libaprutil, do the same for apu-config
> You should use --cflags, --includes and --cppflags similarly - see the
> --help output for details.
Thanks a lot, that's exactly what I was looking for.
Regards,
--
Michael - < mike(@)php.net >
Re: what to link/include for apr_md5_encode()
Posted by Joe Orton <jo...@redhat.com>.
On Wed, Aug 18, 2004 at 03:45:19PM +0200, Michael Wallner wrote:
> Hi,
>
> I don't know if this is the right place to ask,
> if not please point me to the right one;
> and please be gentle - I'm a C novice ;)
>
> I wonder what to link and include to be able
> to call apr_md5_encode()?
apr_md5_encode is defined in the apr-util library; to link against the
libraries you need to use the -config scripts; to link against just
libapr, use:
`apr-config --ldflags --libs --link-ld`
to link against both libapr and libaprutil, do the same for apu-config
You should use --cflags, --includes and --cppflags similarly - see the
--help output for details.
Regards,
joe