It prints #<directory (guile-user) ........> However, I cannot reproduce this problem any more.
Steve 2013/12/10 Ludovic Courtès <[email protected]>: > Sun Yijiang <[email protected]> skribis: > >> static void _main(void *data, int argc, char* argv[]) { >> // smob definitions >> DEFINE_SMOB(....) >> ... >> >> scm_c_define_module("builtin", init_builtins, NULL); >> scm_c_eval_string( >> "(current-warning-port (%make-void-port \"w\"))" >> "(read-set! keywords 'prefix)" >> "(add-to-load-path \"/my/scm/path\")" >> "(use-modules (builtin) (ice-9 readline)) (activate-readline)" >> ); >> scm_shell(argc, argv); >> } > > Could you add this line right after the ‘scm_c_define_module’ line: > > scm_write (scm_current_module (), scm_current_error_port ()); > > What does it print? > > Ludo’.
