Next: Foreign Function Calls, Previous: Foreign Data Structure Examples, Up: Foreign Function Interface
Foreign object files can be loaded into the running Lisp process by
calling load-shared-object
.
Load a shared library/dynamic shared object file/general dlopenable alien container, such as a .so on an
elf
platform.Reloading the same shared object will replace the old definitions; if a symbol was previously referenced thru the object and is not present in the reloaded version an error will be signalled. Sameness is determined using the library filename. Reloading may not work as expected if user or library-code has called dlopen on
file
.References to foreign symbols in loaded shared objects do not survive intact through
sb-ext:save-lisp-and-die
on all platforms. Seesb-ext:save-lisp-and-die
for details.