QOF won't link

Linas Vepstas linas at linas.org
Thu Jun 17 00:33:55 EDT 2004

On Wed, Jun 16, 2004 at 10:01:56PM +0100, Neil Williams was heard to remark:
> On Wednesday 16 June 2004 9:26, Derek Atkins wrote:
> > Neil Williams <linux at codehelp.co.uk> writes:
> > > Package: libqof-dev
> > This is your problem.  remove this package.  try again.

FWIW, I have qof-dev installed on my system, and I don't ahve this
problem.  Note, however, that my qof-dev is in /usr/local/include
and not in /usr/include .. Hmmm. 

> I've removed that, now I'm back to the original linkage problem. It compiles 
> fine, just won't link:
> basic.o(.text+0x16): In function `gnc_book_merge_run_query':
> /opt/neil/gnucash/src/import-export/gnc-book-merge/basic.c:15: undefined 
> reference to `qof_sql_query_run'

That is because gnucash does not currently compile src/engine/qofsql.c
because, until now, no code in gnucash actually used this function.
basic.c must be something new that you've written.  You need to add
qofsql.c to src/engine/Makefile.am

Best of my knowledge, qofsql.c should compile & work fine within
Gnucash; its just that, until now, it hasn't been needed.  (I use
it in gnotime).


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

More information about the gnucash-devel mailing list