Defining dependencies



I like to partition up my projects into several libraries, so that
certain functionality can be easily reused.

When I build on top of those libraries, I can use 'load' (I do not use
require and provide since they are declared obsolete). However, what
is the best place to add the load ?

- In the application itself, at the beginning of the file ? This seems
to work for just executing an application. When compiling, however, it
seems I can get different problems :
- compiling the file in itself fails because of unresolved
dependencies.
- loading the libraries before the compilation solves this problem,
but this is a duplication.
- not including a load in the application requires the user to check
the file itself for dependencies.

The thing is that I am used to Perl's use and Python's import
statements, but these languages are not compiled. When I use Common
Lisp only as an interpreter, load works fine. It is just that when I
want to compile files, things go awry.

I know about asdf, but I am working cross-platform, and asdf's use of
symbolic links gives problems on Windows (CLISP under Windows/Linux,
and SBCL under Linux).

So, what gives ? When one does not use asdf or another build system,
what is the best recourse to take ?

Regards,

Jurgen

.



Relevant Pages

  • Re: Turkeys and dynamic linking
    ... > Windows, you have real savings. ... terms of sharing dll code. ... If Windows can load the library there, ... able to put those libraries at the same place in each process. ...
    (freebsd-current)
  • Re: Defining dependencies
    ... certain functionality can be easily reused. ... When I build on top of those libraries, I can use 'load' (I do not use ... When compiling, however, it ...
    (comp.lang.lisp)
  • Re: Please help ASDF-INSTALL on windows
    ... Double click to do the windows installation. ... Under Documents and settings/user/Lisp Libraries ... To load from the file menu choose load and go to the Lisp Libraries ... To install new libraries just unpack them under Lisp Libraries directory. ...
    (comp.lang.lisp)
  • Re: shared library loader configuration
    ... I'm still not convinced that "telling the system where to load ... libraries from" is the solution to you problem, ... Let's say that today you install something that requires ... compiling things? ...
    (freebsd-questions)
  • Re: What GUI toolkit looks the best?
    ... You must use MSVC for compiling on Windows. ... the complete program (including libraries) under a debugger. ...
    (comp.lang.python)