[previous] [up] [next]     [contents] [index]
Next: xctocc Syntax Up: xctocc Overview Previous: How does xctocc work?

How is xctocc-generated code linked to MzScheme?

For a file ``f.xc'', xctocc generates two files: ``f.cc'' and ``f.h''. ``f.cc'' contains all the glue code; ``f.h'' provides prototypes for the initializing function for all classes and global function sets in the file. (``f.h'' contains a lot of other prototypes as well; these are used internally, and provide checking across ``.xc'' files when you use them as instructed below.)

For each C++ class c, xctocc generates a function objscheme_setup_c, which takes a Scheme_Env * parameter and returns void. For each global function set named g, xctocc generates a function objscheme_setup_g.

To link this code, do the following:



PLT