tags:

views:

345

answers:

1

I want to call a Subversion API from a Visual Studio 2003 C++ project.

I know there are threads here, here, here, and here that tell how to get started with C#.NET on Windows (the consensus seems to be SharpSvn, which I've used easily and successfully on another project) but that's not what I want.

I've read the chapter on using APIs in the red-bean book which says:

Subversion is primarily a set of C libraries, with header (.h) files that live in the subversion/include directory of the source tree. These headers are copied into your system locations (e.g., /usr/local/include) when you build and install Subversion itself from source. These headers represent the entirety of the functions and types meant to be accessible by users of the Subversion libraries.

I'd like to use CollabNet Subversion but there doesn't seem to be API binary downloads, and I'd just as soon not build the whole thing if I can avoid it.

Considering another approach, I found RapidSVN's C++ API, but it doesn't appear to offer Windows API binaries either and seems to require building SVN (which I would be willing to do as a last choice if RapidSVN's API is higher-level than the stock SVN offering.)


Does calling the API from C++ in Windows have to be this much more work compared to using SharpSvn under .NET, or is there something I haven't found that would help me achieve my goal?

+2  A: 

You need the dev package from here. Probably download also the binaries of the tools (DLLs are there).

Milen A. Radev
Thank you! I'll try that. Your "dev" link and your "binaries" link are the same - did you intend that?
JeffH
No. Fixed now!
Milen A. Radev
I am able to get a struct svn_version_t * from a call to svn_client_version() and the struct values are 1,6,3 so I'm off and running. Thanks again! Accepting your answer.
JeffH