Using the C Math Library    

Building Shared Libraries  

You can use mbuild to build C shared libraries on both UNIX and the PC. All of the mbuild options that pertain to creating stand-alone applications also pertain to creating C shared libraries. To create a C shared library, you use the option

and specify one or more files with the .exports extension. The .exports files are text files that contain the names of the functions to export from the shared library, one per line. You can include comments in your code by beginning a line (first column) with # or a *.  mbuild treats these lines as comments and ignores them.  mbuild merges multiple .exports files into one master exports list. For example, given file2.exports as:

and file1.c as:

The command

creates a shared library named file1.ext, where ext is the platform-dependent shared library extension. For example, on the PC, it would be called file1.dll.


 Problem Starting Stand-Alone Application Troubleshooting mbuild