Require commands only work when compiled in separate buffer?
Posted: Fri Aug 26, 2011 5:24 pm
Hi there,
Summary: If I try to compile some code with the require commands at the top the compilation fails with "package not found". If I put the require commands in a separate buffer and compile them, then come back and compile the rest of the code everything works fine.
Detail:
I'm following Adam Peterson's "Retro Games" Tutorial":
http://www.adampetersen.se/articles/lispweb.htm
I put all the code in a buffer as I go along and compile it with Slime commands.
If I put:
at the top of the buffer and try to compile it I get "package not found errors".
If I put the require statements in a separate buffer and compile it then go back and compile the buffer with the game code it works.
Anyone got any ideas why this might be? It's not a big problem for me in terms of following the tutorial but I'd like to understand what is going on.
Any help appreciated.
Thanks.
Nick
Summary: If I try to compile some code with the require commands at the top the compilation fails with "package not found". If I put the require commands in a separate buffer and compile them, then come back and compile the rest of the code everything works fine.
Detail:
I'm following Adam Peterson's "Retro Games" Tutorial":
http://www.adampetersen.se/articles/lispweb.htm
I put all the code in a buffer as I go along and compile it with Slime commands.
If I put:
Code: Select all
(require 'cl-who)
(require 'parenscript)
etc.
If I put the require statements in a separate buffer and compile it then go back and compile the buffer with the game code it works.
Anyone got any ideas why this might be? It's not a big problem for me in terms of following the tutorial but I'd like to understand what is going on.
Any help appreciated.
Thanks.
Nick