On Sun, Oct 12, 2008 at 10:53 PM, felix winkelmann <[EMAIL PROTECTED]> wrote: > > "import" will try to find an import library. If you compile your modules > with "-emit-import-library MODULE", then a "MODULE.import.scm" > will be generated that you can compile to a .so and which can then > be accessed via "import". Getting rid of this run-time dependency > would mean to statically link the import lib. An interesting option, that > I'll investigate.
Er, sorry about this nonsense. Just compiling your module as a unit will register the module-info at runtime. "import" only loads a file dynamically, if no module-registration has been done yet, and if a <module>.import.[so|scm] exists. By compiling your module normally (that is, without -emit-import-library), the module will be properly registered and available. Eval still has to do the import, though, but that should be acceptable. cheers, felix _______________________________________________ Chicken-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/chicken-users
