Welcome to the CHICKEN Scheme pasting service
no title added by anonymous on Tue Nov 19 16:10:21 2013
mylibraryname.meta: ------------------------ ( ; Your egg's license: (license "BSD") ; Pick one from the list of categories (see below) for your egg and enter it ; here. (category web) ; A list of eggs mpeg3 depends on. If none, you can omit this declaration ; altogether. `depends' is an alias to `needs'. ; Notice that you should NOT put Chicken units (e.g., srfi-1, srfi-13 ; and many others) in `needs' or in `depends'. ;(needs sandbox syntax-case) ; A list of eggs required for TESTING ONLY. See the `Tests' section. ; Just like `needs' and `depends', `test-depends' should NOT contain ; Chicken units. (test-depends test) (author "Your Name Goes Here") (synopsis "A basic description of the purpose of the egg.")) ------------------------ mylibraryname.scm: ------------------------ (declare (unit mylibraryname)) (declare (hide swig-init swig-init-return) (foreign-declare "C_extern void swig_mylibraryname_init(C_word,C_word,C_word) C_noret;")) (define swig-init (##core#primitive "swig_mylibraryname_init")) (define swig-init-return (swig-init)) ------------------------ mylibraryname-scm.scm: ------------------------ (declare (uses mylibraryname)) and some additional code ------------------------ mylibraryname.setup: ------------------------ (run (csc -sv -lmylibraryname -o mylibraryname.so mylibraryname.scm mylibraryname-scm.scm mylibraryname_wrap.c)) (install-extension 'mylibraryname '("mylibraryname.so") '((version "0.0"))) ------------------------ mylibraryname_wrap.c - a lot of C code, generated by swig and after (use mylibraryname) i'm getting: Error: (import) during expansion of (import ...) - cannot import from undefined module: mylibraryname