[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compiling and linking a trivial guile example
From: |
dsmich |
Subject: |
Re: compiling and linking a trivial guile example |
Date: |
Wed, 5 Apr 2006 10:30:29 -0400 |
---- Chusslove Illich <address@hidden> wrote:
> > [: Ido Yehieli :]
> > return scm_str2string (getenv ("HOSTNAME"));
> > [...]
> > /tmp/ccerLXy4.o: In function `my_hostname':simple-guile.c:(.text+0x16):
> > undefined reference to `scm_str2string'
>
> scm_str2string doesn't seem to exist. If you use -Wall when compiling,
> it'll warn about implicit declaration.
>
> Use scm_makfrom0str for deep copy, or scm_take0str for shallow copy (this
> all Guile 1.6, don't know about 1.8).
Guile 1.8 uses scm_from_locale_string.
-Dale