Require
is not the required operation here.
In the simple case where you have your entire system in one self-sufficient file, you can wrap ql:quickload
forms into an eval-when
:
(in-package #:cl-user)
(eval-when (:compile-toplevel :load-toplevel :execute)
(ql:quickload "usocket"))
(defpackage #:com.yves.tests
(:use #:cl))
(in-package #:com.yves.tests)
;; your code here
If you want to use symbols from usocket
without qualification, use it in the defpackage form:
(defpackage #:com.yves.tests
(:use #:cl #:usocket))
If you have a bigger system that spans several files, you can use ASDF. A quick way to get a simple setup running is quickproject
, also available from Quicklisp.