To compile and link source files into a shared object module for INMOD or notify exit routines on LINUX client systems, use the following syntax.
Be sure to compile the INMOD and notify exit routines in 32-bit mode so they are compatible with Teradata MultiLoad.
Compile Syntax
where the following is true:
- gcc
- Call to the program that invokes the native C compiler
- -m32
- Generates code for a 32-bit environment. Sets int, long, and pointer to 32 bits.
- -shared
- Flag that produces a shared object that can then be linked with other objects to form an executable
- -fPIC
- Compiler option that generates Position Independent Code for all user exit routines
- -o
- Output file name
- sourcefile
- File name(s) of the source file(s) for the INMOD or notify exit routine
- shared-object-name
- Name of the shared object file
For a description of the syntax diagrams used in this book, see How to Read Syntax Diagrams.