Strange error: The following functions were used but not defined: N UGRAPH->PNG

102 views
Skip to first unread message

Kurtosis

unread,
May 25, 2011, 8:37:18 PM5/25/11
to Land of Lisp
I've got one last bug in wumpus.lisp, but having trouble tracking it
down. When I compile wumpus.lisp, I get:


;; Compiling file /home/kurtosis/bin/projects/Lisp/LoL/wumpus.lisp ...
;; Wrote file /home/kurtosis/bin/projects/Lisp/LoL/wumpus.fas
The following functions were used but not defined:
N UGRAPH->PNG
0 errors, 0 warnings
Bye.

When I search both wumpus.lisp and graph-util.lisp (which I load into
the beginning of wumpus.lisp with (load 'graph-util.lisp) ), I get no
results. ugraph->png is used once at the very end of wumpus.lisp in
the draw-city function.

Where's that 'N' coming from?

https://github.com/byrongibson/Land-of-Lisp

Peter Frings

unread,
May 26, 2011, 3:21:20 PM5/26/11
to land-o...@googlegroups.com, Kurtosis

There's a typo on line 129 of wumpus.lisp. I've pasted a screenshot, it avoids messing up the indentation and the red underline clearly shows where the problem is:

PastedGraphic-1.png

Kurtosis

unread,
May 26, 2011, 6:57:42 PM5/26/11
to Land of Lisp
Thanks so much, that appears to have solved all of it. I still get
that error when I compile it, but at least it all actually works
now.

I believe ugraph->png is the only func delcared in a separate file
(graph-util.lisp), so I wonder if that warning is related?
>  PastedGraphic-1.png
> 45KViewDownload
>
>
>
> That underlined expression should've been (assoc n edge-alist).
>
> I'm not sure why ugraph->png is not found.
>
> Well, 1 out of 2 ain't bad :-)
>
> Cheers,
> Peter.

Kurtosis

unread,
May 26, 2011, 6:58:55 PM5/26/11
to Land of Lisp
Actually, fwiw, it's not quite exactly the same error, now the 'N' is
gone, but it still says 'UGRAPH->PNG used but not declared'.
Reply all
Reply to author
Forward
0 new messages