Warning: This is the manual of the legacy Guile 2.2 series. You may want to read the manual of the current stable series instead.
Next: Linking Guile with Libraries, Previous: Parallel Installations, Up: Programming in C [Contents][Index]
This section covers the mechanics of linking your program with Guile on a typical POSIX system.
The header file <libguile.h>
provides declarations for all of
Guile’s functions and constants. You should #include
it at the
head of any C source file that uses identifiers described in this
manual. Once you’ve compiled your source files, you need to link them
against the Guile object code library, libguile
.
As noted in the previous section, <libguile.h>
is not in the
default search path for headers. The following command lines give
respectively the C compilation and link flags needed to build programs
using Guile 2.2:
pkg-config guile-2.2 --cflags pkg-config guile-2.2 --libs
• Guile Initialization Functions: | What to call first. | |
• A Sample Guile Main Program: | Sources and makefiles. |