Re: help

Gary King <[email protected]> Sun, 16 Sep 2007 22:45:58 -0400
Newsgroups gmane.lisp.allegro
Message-ID <[email protected]>
--Apple-Mail-12--910922304
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	delsp=yes;
	format=flowed

Hi Remalyn,

If Lisp doesn't know about defparameter, then it's likely a package  
problem. Recall that a symbol has a name and a home package, can be  
exported from that home and imported into other packages. Recall as  
well that when you define  package, you specify which packages it  
should use. Without seeing your code, I'd guess that you have  
something like:

(defpackage #:common-graphers-user
	...)

instead of

(defpackage #:common-graphers-user
	(:use #:common-lisp ...) ...)

If you define a package without using the Common-Lisp package, then   
that new package won't have easy access to the Common-Lisp symbols.  
It would help diagnose the problem is you included more of the code  
that you're trying to load (at least the package definitions).

HTH,


On Sep 16, 2007, at 4:30 AM, Remalyn Quinay wrote:

> How am i going to solve this one?
>
> #<The CL-USER package>
> CL-USER(4):
> ; Loading C:\MyThesis\AGT\lisp\boot.lisp
> ;   Loading C:\MyThesis\lisp\gramy.lisp
> ;     Loading C:\MyThesis\lisp\gramy-package.lisp
> ;     Loading C:\MyThesis\lisp\site-def.lisp
> Error: attempt to call `defparameter' which is an undefined function.
> [condition type: undefined-function]
> [changing package from "common-graphics-user" to "CL-USER"]
> CL-USER(4):
>
> Boardwalk for $500? In 2007? Ha!
> Play Monopoly Here and Now (it's updated for today's economy) at  
> Yahoo! Games.

--
Gary Warren King, metabang.com
Cell: (413) 559 8738
Fax: (206) 338-4052
gwkkwg on Skype * garethsan on AIM





--Apple-Mail-12--910922304
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=ISO-8859-1

<html><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space; ">
Hi Remalyn,<div><br class=3D"webkit-block-placeholder"></div><div>If =
Lisp doesn't know about defparameter, then it's likely a package =
problem. Recall that a symbol has a name and a home package, can be =
exported from that home and imported into other packages. Recall as well =
that when you define =A0package, you specify which packages it should =
use. Without seeing your code, I'd guess that you have something =
like:</div><div><br =
class=3D"webkit-block-placeholder"></div><div>(defpackage =
#:common-graphers-user</div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>...)<br =
class=3D"webkit-block-placeholder"></div><div><br =
class=3D"webkit-block-placeholder"></div><div>instead of=A0</div><div><br =
class=3D"webkit-block-placeholder"></div><div><div>(defpackage =
#:common-graphers-user</div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>(:use #:common-lisp ...) ...)<br =
class=3D"webkit-block-placeholder"></div><div><br =
class=3D"webkit-block-placeholder"></div><div>If you define a package =
without using the Common-Lisp package, then =A0that new package won't =
have easy access to the Common-Lisp symbols. It would help diagnose the =
problem is you included more of the code that you're trying to load (at =
least the package definitions).</div><div><br =
class=3D"webkit-block-placeholder"></div><div>HTH,</div><div><br =
class=3D"webkit-block-placeholder"></div><br><div><div>On Sep 16, 2007, =
at 4:30 AM, Remalyn Quinay wrote:</div><br =
class=3D"Apple-interchange-newline"><blockquote type=3D"cite"><div>How =
am i going to solve this one?</div>  <div>=A0</div>  <div>#&lt;The =
CL-USER package&gt;<br>CL-USER(4): <br>; Loading =
C:\MyThesis\AGT\lisp\boot.lisp<br>;=A0=A0 Loading =
C:\MyThesis\lisp\gramy.lisp<br>;=A0=A0=A0=A0 Loading =
C:\MyThesis\lisp\gramy-package.lisp<br>;=A0=A0=A0=A0 Loading =
C:\MyThesis\lisp\site-def.lisp<br>Error: attempt to call `defparameter' =
which is an undefined function.<br>[condition type: =
undefined-function]<br>[changing package from "common-graphics-user" to =
"CL-USER"]<br>CL-USER(4): </div><div>        <br =
class=3D"khtml-block-placeholder"></div><hr size=3D"1">Boardwalk for =
$500? In 2007? Ha! <br><a =
href=3D"http://us.rd.yahoo.com/evt=3D48223/*http://get.games.yahoo.com/pro=
ddesc?gamekey=3Dmonopolyherenow">Play Monopoly Here and Now</a> (it's =
updated for today's economy) at Yahoo! =
Games.</blockquote></div><br><div> <span class=3D"Apple-style-span" =
style=3D"border-collapse: separate; color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant: normal; =
font-weight: normal; letter-spacing: normal; line-height: normal; =
orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; =
white-space: normal; widows: 2; word-spacing: 0px; =
-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: =
0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
auto; -webkit-text-stroke-width: 0; "><span class=3D"Apple-style-span" =
style=3D"border-collapse: separate; border-spacing: 0px 0px; color: =
rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: =
normal; font-variant: normal; font-weight: normal; letter-spacing: =
normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; "><span =
class=3D"Apple-style-span" style=3D"border-collapse: separate; =
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant: normal; font-weight: =
normal; letter-spacing: normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; "><span =
class=3D"Apple-style-span" style=3D"border-collapse: separate; =
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant: normal; font-weight: =
normal; letter-spacing: normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; =
"><div>--</div><div>Gary Warren King,=A0metabang.com=A0</div><div>Cell: =
(413) 559 8738</div><div>Fax: (206) 338-4052</div></span><div>gwkkwg on =
Skype * garethsan on AIM</div><div><br =
class=3D"khtml-block-placeholder"></div><div><br =
class=3D"khtml-block-placeholder"></div></span><br =
class=3D"Apple-interchange-newline"></span></span> =
</div><br></div></body></html>=

--Apple-Mail-12--910922304--