Building A Library Class


Typically you'll want to build with the pre-compiled library procedures. If you are developing a library you will want to import and build the source code for any library procedures you use. In both cases you just give the name of the library on the Import declaration.

A program accesses a library by importing one of two primary classes. If you tell to compiler to link with the library file then it will import the public class. Otherwise, the class that brings in source code will be imported and library procedures will be built as well.

The public class file ends in ".public.clg" and the source code class file ends in ".clg" only. Also when you compile using the the library source class as the primary file then it will create the library file.


The top level directory for a library typically contains:


Primary Library Class: <Library>.clg


Primary Library Class Map: <Library>.cmg


Public Library Class: <Library>.public.clg


Public Library Class Map: <Library>.public.cmg