GNU Info

Info Node: (g-wrap.info)Generating the glue code

(g-wrap.info)Generating the glue code


Next: Accessing the wrapped API from the target language Prev: Generating and using the glue code Up: Generating and using the glue code
Enter node , (file) or (file)node

Generating the glue code
========================

The command g-wrap will generate the wrappers for a given target
language.  It may be invoked as follows:

For Guile:

g-wrap -target guile -api c interface-spec.gwp

For RScheme:

g-wrap -target rscheme -api c interface-spec.gwp

In both cases, g-wrap will generate a number of files containing the
glue code, documention, etc.  In the guile case, presuming that the .gwp
file names the output module interface-spec and also requests an
automatically generated C header named interface-spec-autogen.h, the
following files would be generated:

`interface-spec.h'
     glue code header

`interface-spec.c'
     glue code

`interface-spec.html'
     glue code and API documentation

`interface-spec-autogen.h'
     automatically generated header for the underlying C API


automatically generated by info2www version 1.2.2.9