engine-helpers bug

Linas Vepstas linas@linas.org
Mon, 29 Oct 2001 15:59:15 -0600


On Mon, Oct 29, 2001 at 12:09:11PM -0800, Dave Peticolas was heard to remark:
> On Mon, 2001-10-29 at 11:25, Linas Vepstas wrote:
> > 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;
> }
> 

:-( 

Is this a temporary hack, or a permanenet restriction?

I've been trying to keep guile out of the engine, for obvious reasons,
and so I'm less than happy to see it sneak in there.  The obvious
problem is that to get the perl bindings to the engine, I would first
have to build the perl bindings to guile... yuck.  This presumably
undermines the Java bindings as well...

--linas



-- 
pub  1024D/01045933 2001-02-01 Linas Vepstas (Labas!) <linas@linas.org>
PGP Key fingerprint = 8305 2521 6000 0B5E 8984  3F54 64A9 9A82 0104 5933