mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2025-12-05 18:30:24 -08:00
Update asdf_with_dependence example readme
This commit is contained in:
parent
f400d2ae5e
commit
cd0d59e028
1 changed files with 4 additions and 3 deletions
|
|
@ -31,6 +31,8 @@ already recognized by ASDF).
|
||||||
Use this in REPL to make an executable:
|
Use this in REPL to make an executable:
|
||||||
|
|
||||||
#+BEGIN_SRC common-lisp
|
#+BEGIN_SRC common-lisp
|
||||||
|
(asdf:load-asd "example-with-dep.asd")
|
||||||
|
(asdf:load-system :example-with-dep)
|
||||||
(asdf:make-build :example-with-dep
|
(asdf:make-build :example-with-dep
|
||||||
:type :program
|
:type :program
|
||||||
:move-here #P"./"
|
:move-here #P"./"
|
||||||
|
|
@ -74,7 +76,7 @@ To use it, we write a simple C program:
|
||||||
|
|
||||||
int main (int argc, char **argv) {
|
int main (int argc, char **argv) {
|
||||||
extern void init_dll_example(cl_object);
|
extern void init_dll_example(cl_object);
|
||||||
|
|
||||||
cl_boot(argc, argv);
|
cl_boot(argc, argv);
|
||||||
ecl_init_module(NULL, init_dll_example);
|
ecl_init_module(NULL, init_dll_example);
|
||||||
|
|
||||||
|
|
@ -160,7 +162,7 @@ extern void init_alexandria(cl_object);
|
||||||
extern void init_bt(cl_object);
|
extern void init_bt(cl_object);
|
||||||
extern void init_example(cl_object);
|
extern void init_example(cl_object);
|
||||||
|
|
||||||
/* call these *after* cl_boot(argc, argv);
|
/* call these *after* cl_boot(argc, argv);
|
||||||
if B depends on A, you should first init A then B. */
|
if B depends on A, you should first init A then B. */
|
||||||
ecl_init_module(NULL, init_bt);
|
ecl_init_module(NULL, init_bt);
|
||||||
ecl_init_module(NULL, init_fad);
|
ecl_init_module(NULL, init_fad);
|
||||||
|
|
@ -208,4 +210,3 @@ build all dependent libraries separately as static libraries.
|
||||||
|
|
||||||
[fn:1] You may also link ECL runtime statically. That is not covered
|
[fn:1] You may also link ECL runtime statically. That is not covered
|
||||||
in this walkthrough.
|
in this walkthrough.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue