Mark Carter wrote:
> I can't seem to get clocc working properly. I'm sure it's something
> simple I'm doing wrong, I just can't figure out what. I've installed
> clocc (to the best of my ability), and when I type in the program
>
> (setq *clocc-root* "c:/packages/clocc/")
> (load (concatenate 'string *clocc-root* "clocc"))
> (load (translate-logical-pathname "clocc:src;cllib;base"))
> (load (translate-logical-pathname "clocc:src;cllib;math") )
> (mgg-interest (100 3 0.1))
> I obtain the results:
...
> EVAL: undefined function MGG-INTEREST
> [Condition of type SYSTEM::SIMPLE-UNDEFINED-FUNCTION]
I would help if I had actually used the right library!
mgg-interest is actually in clocc/src/cllib/fin.lisp, and not math.lisp,
so a way of invoking it might be as follows:
(setq *clocc-root* "c:/packages/clocc/")
(load (concatenate 'string *clocc-root* "clocc"))
(load (translate-logical-pathname "clocc:src;cllib;fin") )
(cllib:mgg-interest 100 3 0.1)
It might not be the best way, but at least it works.
Just to elaborate on the point, here's how one might invoke the sysinfo
function found in clocc/src/port/sys.lisp:
(setq *clocc-root* "c:/packages/clocc/")
(load (concatenate 'string *clocc-root* "clocc"))
(load (translate-logical-pathname "clocc:src;port;sys") )
(port:sysinfo)
Thanks go to "Persons or Persons Unknown" for providing feedback to my
personal email address.