guile-user
[Top][All Lists]
Advanced

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

Re: compiling and linking a trivial guile example


From: Chusslove Illich
Subject: Re: compiling and linking a trivial guile example
Date: Wed, 5 Apr 2006 14:05:32 +0200
User-agent: KMail/1.8.3

> [: 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).

-- 
Chusslove Illich (Часлав Илић)

Attachment: pgp3XejGYMIW7.pgp
Description: PGP signature


reply via email to

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