External App connection to a GnuCash file

Daniel Espinosa esodan at gmail.com
Wed Aug 29 19:02:00 EDT 2007

2007/8/29, Derek Atkins <warlord at mit.edu>:
> Quoting Daniel Espinosa <esodan at gmail.com>:
> > 2007/8/29, Josh Sled <jsled at asynchronous.org>:
> >> "Daniel Espinosa" <esodan at gmail.com> writes:
> >> > I found a macro in /macros/legacy_macros.m4 witch test for sscanf to
> >> > support %lld (long long decimal integer) if so defines HAVE_SCANF_LLD.
> >> > I think this is supported in recent gcc versions, then I can safetly
> >> > define it in configure.in or remove this test in
> >> > /lib/libqof/qof/qofutil.h.
> >>
> >> I'm not 100% sure about the provenance of that code, but I'm pretty sure it
> >> should not be removed.
> Indeed, it should not be removed.  Although we might want to move it into
> a more "internal" header instead of exposing it in the "qof" interface.
> But that's a discussion for a different day.
> > I found a some macros used in GnuCash's configure.in file, and I'll
> > trying to add to my program in order to fix this error, does any know
> > how can I do this?
> Copy the code from our configure.in into your configure.in.

I have already copied the code from gnucash's configure.in, and the
all the code in legacy_macros.m4 to my project, but for now I don't
know how make this macros to be included in my project, I've added in
Makefile.am at

EXTRA_DIST = (...) macros/legacy_macros.m4

but autogen.sh/configure don't find this definitions.

Any sugestion?

> >> > Well as result of this test program, I'll try to add the missing
> >> > functions for GncBook and some documentation trying to keep as simple
> >> > as possible the process to load a book and close it.
> >>
> >> Which functions are missing?
> >>
> >
> > Just wait to finish my program and I'll give you the missing
> > funcitions I think could be there to make easy some others to use GC's
> > data through the backends (I don't want to talk more about becouse the
> > bug #470750 is marked as just a "documentation bug" not a " missing
> > feature ")
> Keep in mind that there IS no "GNCBook".  GNCBook was migrated to QofBook.
> All the functions are qof_book_*.  The old "gnc_book" functions are
> deprecated wrappers.
> The old documentation you found is, well, old.. And wrong.  It was
> probably written before I started working on GnuCash in 1999, and
> it certainly has not been kept up to date since at LEAST GnuCash 1.4.
> Right now the current developer docs are available at:
>   http://cvs.gnucash.org/docs/HEAD/

OK, I'll see it there.

Trabajar, la mejor arma para tu superación
"de grano en grano, se hace la arena" (R) (entrámite, pero para los
cuates: LIBRE)

More information about the gnucash-devel mailing list