diff options
Diffstat (limited to 'doc/ref/libguile-extensions.texi')
-rw-r--r-- | doc/ref/libguile-extensions.texi | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/ref/libguile-extensions.texi b/doc/ref/libguile-extensions.texi index 78871c6ca..95f92cac6 100644 --- a/doc/ref/libguile-extensions.texi +++ b/doc/ref/libguile-extensions.texi @@ -1,6 +1,6 @@ @c -*-texinfo-*- @c This is part of the GNU Guile Reference Manual. -@c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2005, 2006 +@c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2011 @c Free Software Foundation, Inc. @c See the file guile.texi for copying conditions. @@ -64,7 +64,7 @@ Consider the following file @file{bessel.c}. SCM j0_wrapper (SCM x) @{ - return scm_make_real (j0 (scm_num2dbl (x, "j0"))); + return scm_from_double (j0 (scm_to_double (x))); @} void @@ -78,7 +78,8 @@ This C source file needs to be compiled into a shared library. Here is how to do it on GNU/Linux: @smallexample -gcc -shared -o libguile-bessel.so -fPIC bessel.c +gcc `pkg-config --cflags guile-@value{EFFECTIVE-VERSION}` \ + -shared -o libguile-bessel.so -fPIC bessel.c @end smallexample For creating shared libraries portably, we recommend the use of GNU |