David Hansen <[EMAIL PROTECTED]> writes:

> Hello,
>
> my first guile code started with a SIGSEGV.  Not sure if
> it's not my fault but looks like a bug to me.

You need to initialize Guile before using it.  For example:

    static void
    inner_main (void *data, int argc, char **argv)
    {
      SCM str = scm_makfrom0str ("hello world");
      /* ... */
    }

    int
    main (int argc, char **argv)
    {
      scm_boot_guile (argc, argv, inner_main, 0);
      return 0; /* never reached */
    }

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405


_______________________________________________
Bug-guile mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-guile

Reply via email to