guile-cvs
[Top][All Lists]
Advanced

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

guile/guile-core/doc gh.texi


From: Marius Vollmer
Subject: guile/guile-core/doc gh.texi
Date: Fri, 29 Jun 2001 16:12:34 -0700

CVSROOT:        /cvs
Module name:    guile
Changes by:     Marius Vollmer <address@hidden> 01/06/29 16:12:34

Modified files:
        guile-core/doc : gh.texi 

Log message:
        Updates to the transition guide.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/guile/guile-core/doc/gh.texi.diff?cvsroot=OldCVS&tr1=1.8&tr2=1.9&r1=text&r2=text

Patches:
Index: guile/guile-core/doc/gh.texi
diff -u guile/guile-core/doc/gh.texi:1.8 guile/guile-core/doc/gh.texi:1.9
--- guile/guile-core/doc/gh.texi:1.8    Tue Jun 26 14:55:44 2001
+++ guile/guile-core/doc/gh.texi        Fri Jun 29 16:12:34 2001
@@ -839,9 +839,27 @@
 Use @code{#include <libguile.h>} instead of @code{#include
 <guile/gh.h>}.
 
address@hidden Linking flags
-No change: @code{-lguile} should be added to the link command line,
-along with any additional libraries that your application needs.
address@hidden Compiling and Linking
+Use @code{guile-config} to pick up the flags required to compile C or
+C++ code that uses @code{libguile}, like so
+
address@hidden
+$(CC) -o prog.o -c prog.c `guile-config compile`
address@hidden smallexample
+
+If you are using libtool to link your executables, just use
address@hidden in your link command.  Libtool will expand this into
+the needed linker options automatically.  If you are not using
+libtool, use the @code{guile-config} program to query the needed
+options explicitely.  A linker command like
+
address@hidden
+$(CC) -o prog prog.o `guile-config link`
address@hidden smallexample
+
+should be all that is needed.  To link shared libraries that will be
+used as Guile Extensions, use libtool to control both the compilation
+and the link stage.
 
 @item The @code{SCM} type
 No change: the scm interface also uses this type to represent an
@@ -867,13 +885,10 @@
 Use @code{scm_init_guile} instead.
 
 @item @code{gh_eval_str}
-Use @code{scm_eval_0str} instead.
+Use @code{scm_c_eval_string} instead.
 
 @item @code{gh_eval_file} or @code{gh_load}
-Replace @code{gh_eval_file (@var{fname})} by
address@hidden
-scm_primitive_load (scm_makfrom0str (@var{fname}))
address@hidden example
+Use @code{scm_c_primitive_load} instead.
 
 @item @code{gh_new_procedure}
 Use @code{scm_c_define_gsubr} instead, but note that the arguments are



reply via email to

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