On Mon, 2001-10-29 at 11:25, Linas Vepstas wrote:
> On Mon, Oct 29, 2001 at 01:08:37PM -0600, Linas Vepstas was heard to remark:
> >
> > I've got a bug that I am not sure how to hack around.
> >
> > Since libgncengine.so doesn't exist any more, I assume that
> > libgncmod-engine.so is the right thing to link to. However:
> >
> > /usr/bin/perl: relocation error: /usr/local/lib/gnucash/libgncmod-engine.so.0:
>undefined symbol: gnc_engine_commodity_table_new
> >
> > # grep gnc_engine_commodity_table_new *.c
> > engine-helpers.c:gnc_engine_commodity_table_new (void)
> > gnc-book.c: book->commodity_table = gnc_engine_commodity_table_new ();
> >
> > However engine-helpers.c is not a part of libgncmod-engine.so,
> > instead, its a part of libgw-engine.so which doesn't seem like the
> > appropriate thing to link to, when using the non-g-wrapped version
> > of the engine libraries.
> >
> > What is the suggested fix for this? At the moment, there is no way to
> > use the engine without also invoking guile. Is this really the intent?
> >
> > --linas
>
> One more thing: by explicitly linking to libgw-engine.so, I
> still can't use the engine:
>
> main ()
> {
> gnc_engine_init(0,0);
> gnc_session_new();
> }
You want something like this:
static void
guile_main (int argc, char **argv)
{
gnc_module_system_init();
gnc_module_load("gnucash/engine", 0);
gnc_session_new();
}
int
main (int argc, char **argv)
{
gh_enter (argc, argv, guile_main);
return 0;
}
PGP signature