Compiling and Linking on UNIX

Enrichment for UNIX can only process functions written in C. You must compile and link to create a shared object where the entry point name is the same as the file name.

AIX

For UNIX systems running AIX, you must place the user-written function name in name.c and compile and link the function using the following command:

cc name.c -o functionName -e functionName -H512 -T512

On 64-bit:

cc name.c -o functionName -e functionName -H512 -T512 -q64

where functionName is the name of the function

You must place the name executable in a directory listed in the LIBPATH environment variable. Typically, this will be .../Enrichment/bin.

Sun Solaris

For systems running Sun Solaris, you must place the user-written function name in name.c and compile and link the function using the following command:

cc name.c -o functionName -G -L.../Enrichment/bin

where functionName is the name of the function

You must place the name executable in a directory listed in the LD_LIBRARY_PATH environment variable. Typically, this will be .../Enrichment/bin.

On Sun Solaris you must specify an environment variable for LD_LIBRARY_PATH in order for the user function to be called properly.

HP-UX

For systems running HP-UX, you must place the user-written function name in name.c and compile and link the function using the following commands:

cc -Ae -c +z name.c

On 64-bit:

cc -Ae -c +z +DD64 name.c

ld -b +s -o functionName name.o

where functionName is the name of the function.

You must place the name executable in a directory listed in the SWVR_LIB environment variable. Typically, this will be .../Enrichment/bin.