Currently working on creating a guile program that has a few modules defined using (define-module (progname mod1))
these are the in ./progname
directory. My main program in the root directory is simply called ./progname
. I’m following the examples I see for multiple guile projects here like Haunt, Guile-zlib, Hoot.
In the main project where I called
(use-modules (progname mod1)
(progname mod2)
I get ERROR: In procedure %resolve-variable: Unbound variable: mod2procedure
.
I’ve tried adding (add-to-load-path "/path/to/progname/")
and variations to the directory with no success. Also, when I run the code from the scheme all in one file it works correctly, and when I manually run the load-path above in a Guile REPL, the program works as well.
Any thoughts on how to get the modules known to the main program?