Hey,
when trying to compile the example from chapter 2.3.3 Linking
Guile into Programms in the Reference Manual with gcc 3.3.5 I get the
following:
gcc -o simple-guile simple-guile.c -lguile -pthread \
-Wl,-rpath,/usr/local/lib
(gdb) run
Starting program:
Frithjof [EMAIL PROTECTED] writes:
Hey,
when trying to compile the example from chapter 2.3.3 Linking
Guile into Programms in the Reference Manual with gcc 3.3.5 I get the
following:
gcc -o simple-guile simple-guile.c -lguile -pthread \
-Wl,-rpath,/usr/local/lib
(gdb) run
Starting
Neil Jerram [EMAIL PROTECTED] writes:
You might like to try making the code for my-hostname safer, like
this:
We should make the example safe as well...
--
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405
___
Bug-guile mailing
Frithjof [EMAIL PROTECTED] writes:
Is my system just not set up correctly or is this a bug in Guile or one in
the example?
A bug in the example. If you don't have a HOSTNAME variable then
getenv returns NULL, and scm_str2string can't cope with NULL. I'll
change the manual. Thanks.