Next: Software Architecture
Up: Overflow User's Manual
Previous: Exceptions
  Contents
Is is now possible to generate C++ code from an Overflow .n file.
You can do that by clicking the "Build" button on
the toolbar. Doing so brings up the code generation dialog (fig. ).
Figure:
Code generation dialog
|
The "Build function name" is the name given to the
function that will return the network (Network *) corresponding
to the XML file. You will only care if you want to build a library
or if you want multiple networks. The "Output file name"
option specifies the name of the C++ file that builds the network.
Of course, "Directory" specifies where to put all
that.
There are 3 code generation options:
- Generate main: Check that if you want to build an application (as
opposed to a library)
- Static linkage: This will copy all the required Overflow files in
the same directory. This will allow to build an application/library
without linking to Overflow. Note that the Overflow license (LGPL)
still applies to the copied files.
- Generate makefile: Unimplemented yet
Note: the VFLOW_SOURCE environment variable must be set to your Overflow
source directory in order for the "static linkage"
option to work.
Next: Software Architecture
Up: Overflow User's Manual
Previous: Exceptions
  Contents
Jean-Marc Valin
2002-06-17