[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Linking to libsvn_client?

From: Ben Collins-Sussman <sussman_at_red-bean.com>
Date: Sun, 15 Jun 2008 11:06:38 -0500

Look at tools/examples/minimal_client.c right in the svn tree:

  http://svn.collab.net/repos/svn/trunk/tools/examples/minimal_client.c

Specifically, notice the docstring at the top:

 * cc minimal_client.c -o minimal_client \
 * -I/usr/local/include/subversion-1 -I/usr/local/apache2/include \
 * -L/usr/local/apache2/lib -L/usr/local/lib \
 * -lsvn_client-1 -lapr-0 -laprutil-0

On Sun, Jun 15, 2008 at 12:58 AM, Andrew Smith <asmith15_at_littlesvr.ca> wrote:
> Hi
>
> I'd like to make an application that's (among other things) a subversion
> client.
>
> How do I go about linking to it? I can include svn_client.h, and build with
> `apr-1-config --flags --cppflags --includes`. But when it comes to linking,
> I get a million errors like:
> "subversion-1.4.6/subversion/libsvn_client/checkout.c:56: undefined ref
> erence to `svn_wc_init_traversal_info'"
>
> I'm trying to link directly to
> subversion/libsvn_client/.libs/libsvn_client-1.a as all I need is the
> client.
>
> Is there documentation for developers like me? I'll go read it instead of
> bothering you :)
>
> Thanks,
>
> Andrew
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: dev-help_at_subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-06-15 18:07:06 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.