API on Windows

Ewan Slater ewan.slater at googlemail.com
Wed Aug 1 06:09:02 EDT 2012


Hi John,

Thanks.

For anyone else who is interested these libraries are actually in the bin
dIrectory, not the lib or libexec directories (which confused me).

So next up, I'll track down the header files and see where I get too.

Cheers,

Ewan

On 31 July 2012 23:35, John Ralls <jralls at ceridwen.us> wrote:

>
> On Jul 31, 2012, at 5:27 AM, Ewan Slater <ewan.slater at googlemail.com>
> wrote:
>
> > Hi,
> >
> > I am running GnuCash 2.4.10 on Windows 7 (standard executable download).
> >
> > I am interested in using the API (or at least trying to).
> >
> > Do I have to build GnuCash from source to be able to access the API, or
> are
> > the libraries available pre - compiled for Windows (ideally shipped with
> > the binaries)?
> >
> > Looking here http://wiki.gnucash.org/wiki/C_API seems to imply I need to
> > build from source.
> >
> > I don't want to make any mods to GnuCash itself at this point, I'd just
> > like to be able to call the API from a Windows program written in C++
> > (currently using MS Visual Studio Express 2008 / Visual C++).  So if I
> can
> > avoid building the whole thing from scratch I would prefer not to.
> >
>
> The libraries are of course in the downloaded package -- it wouldn't work
> otherwise. They're in the same directory as gnucash itself. What's not
> there is the headers, so you'll need to get the sources and either use them
> from there or extract the headers to somewhere convenient.
>
> Note, however, that Gnuacsh is built with gcc in a MinGW/MSYS environment.
> No effort has been made to get them to work with MSVC, so you're on your
> own for that part. Good Luck.
>
> Regards,
> John Ralls


More information about the gnucash-user mailing list