Hi Joakim,
[email protected] skribis:
> If I instead use scm_shell (argc, argv); rather than
> scm_c_primitive_load("init.scm"); the function is accessible,
> so maybe there is some namespace issue?
Possibly.
> init.scm looks like:
> (define-module (mytest)
> #:use-module (system repl server))
>
> (spawn-server)
The server may run in the (mytest) module, whereas the
scm_c_define_gsubr call was made in the default module, called
(guile-user).
Check what (current-module) says in each case.
HTH,
Ludo’.