howto import define-report in account-piecharts.scm

Larry Evans jcampbell3@prodigy.net
Sat, 21 Sep 2002 15:32:57 -0500


I tried to call gnucash from command line and then invoke the gnc:main 
program.
However, I got the following error:
<------- begin cut here -----------

gnucash: [D] "  checking for ""/home/evansl/.gnucash/date-utilities.scm"
gnucash: [D] "  checking for ""/home/evansl/.gnucash/scm/date-utilities.scm"
gnucash: [D] "  checking for 
""/usr/local/share/gnucash/scm/date-utilities.scm"
gnucash: [D] "found file ""/usr/local/share/gnucash/scm/date-utilities.scm"
/usr/local/share/gnucash/guile-modules/gnucash/report/account-piecharts.scm:404:4: 
In expression (gnc:define-report (quote version) 1 ...):
/usr/local/share/gnucash/guile-modules/gnucash/report/account-piecharts.scm:404:4: 
Unbound variable: gnc:define-report
ABORT: (unbound-variable)

Type "(backtrace)" to get more information or "(debug)" to enter the 
debugger.
guile> (debug)
This is the Guile debugger; type "help" for help.
There are 35 frames on the stack.

Frame 34:   (gnc:define-report (quote version) 1 (quote name) (car l) 
(quote menu-path) (if (caddr l) (list gnc:menuname-income-expense) (list 
gnc:menuname-asset-liability)) (quote menu-name) (cadddr l) (quote 
menu-tip) (car (cddddr l)) (quote options-generator) (lambda () 
(options-generator (cadr l) (caddr l))) (quote renderer) (lambda 
(report-obj) (piechart-renderer report-obj (car l) (cadr l) (caddr l))))
debug>
 >------- end cut here -----------
I even tried adding:

(gnc:depend  "report.scm")

with the other gnc:depend's near the top of the account-piecharts.scm; 
however, I got
the same error.

Please, what should I do to get this to work?