[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Segmentation fault in scm_igc

From: Marius Vollmer
Subject: Re: Segmentation fault in scm_igc
Date: Mon, 08 Mar 2004 00:54:01 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

David Hansen <address@hidden> 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");
      /* ... */

    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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]