<br><br><div><span class="gmail_quote">On 7/18/06, <b class="gmail_sendername">Shaun Kruger</b> <<a href="mailto:shaun.kruger@gmail.com">shaun.kruger@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am really missing something.<br><br>Included is what I have defined for my login screen.  The goal is for<br>it to be callable from anywhere with (show-login-dialog).  When it is<br>called I get the following error:<br>
<br>Error: Undefined function MM-APPS::ID called with arguments (LOGINPROMPT).<br>  1 (continue) Try loading init again.<br>  2 Give up loading init.<br>  3 Try loading another file instead of init.<br>  4 (abort) Return to level 0.
<br>  5 Return to top loop level 0.<br><br>Type :b for backtrace, :c <option number> to proceed,  or :? for other options<br><br>(defmodel login-prompt ...) happens in package :mm-apps which is defines as:<br><br>(defpackage :mm-apps
<br>  (:use :common-lisp :pod :cells :gtk-ffi :cells-gtk :clsql-user)<br>  (:export mm-main))<br><br>I assume it is because the id function exists in another package, but<br>which one?  I couldn't find its definition anywhere in cells or
<br>cells-gtk.  I know I'm missing something, but I just don't know where<br>to look for it.</blockquote><div><br>It has been a while and I do not even see the code on my new system, but I distinctly recall using ID in Cells-gtk when I did the port (or maybe I did it in Celtk and Vasily (sp?) copied it. you can just try cells-gtk::id if in doubt, tho I would be surprised if it were not exported.
<br><br>One possibility is that the compiler is "seeing" your use of ID in the MM-APPS package before it sees your defpackage form. But that should give you one or two warnings. Anyway, the packahe prefix with two colons should force the issue.
<br><br>Note that (apropos "ID") or apropos-list same will give you some clues as to what is going on. Unfortunately there will be a kazillion hits. You might have to right a quick function to call apropos-list and then search through the hits looking for exact matches. What you might find is that apropos fins two symbols, one in cells-gtk and one in mm-map. That would happen only if (a) ID is not exported or (b) you used ID somewhere before the defpackage form. Note that this later scenario can arise if you use ASDF to build and you exited last time with a later ID-referencing file more current than its Fasl. Then, unless the 
cells-gtk.asd has the right dependency or :serial t, the later file gets compiled before the earlier file with the defpackage form gets loaded. This is ASDF silliness that forces one to really get a lot of dependencies declared.
<br><br>hth, kenny<br><br></div></div>