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 3.0:
pkg-config guile-3.0 --cflags pkg-config guile-3.0 --libs
• Guile Initialization Functions | What to call first. | |
• A Sample Guile Main Program | Sources and makefiles. |