Compiling Open C API Programs

To compile Open C API C/C++ programs on a non-Windows platform, you may use the shell script ufcomp. On Windows systems you should use the Visual Studio environment. The ufcomp script file has the following formats where items in [ ] brackets are optional and items in < > brackets are required:
 
ufcomp [-h] -- Get help for usage of ufcomp
 
ufcomp <file names> -- Compile using default compile options
 
ufcomp -sc|ac "<c options>" <file names> -- Compile C code using user provided options
 
ufcomp -scc|acc "<c++ options>" <file names> -- Compile C++ code using user provided options
 
ufcomp -default -- List default compile options
 
ufcomp -- Interactive compilation
 
The switches have the following meanings:
 
-h - get help.
 
-default - list default options.
 
-sc - user specifies all C compile options.
 
-scc - user specifies all C++ compile options
 
-ac - user adds additional switches to default C compile switches.
 
-acc - user adds additional switches to the default C++ compile switches
 
-v - ufcomp will display the exact command line used to compile.
 
<file names> - name of the files to be compiled.
 
<c options> - user supplied C/C++ compile options, they must be quoted by "".