Compiling and Linking on Linux
Enrichment on Linux can only process functions written in C. To use a user function you must create a shared object where the entry point name is the same as the file name, and place the shared object in a directory listed in the LD_LIBRARY_PATH environment variable. Keep in mind that Linux is case sensitive.
For example, if the function in the C source is spelled "normc", the control file must use "normc”, not “NORMC” or “NorMc”.
The following example command creates a shared object with the same name as the function:
$ gcc -shared name.c -o functionName
If you run Enrichment on a 64-bit Red Hat Enterprise Linux platform, the user function must be compiled and linked differently. This example shows the command line syntax:
$ gcc -shared name.c -o functionName -fPID -m32
On 64-bit:
$ gcc -shared name.c -o functionName -fPID -m64