Use the following syntax to compile and link source files into a shared object module for INMOD, OUTMOD, or notify exit routines on Linux 32-bit client systems. On Linux 64-bit client systems compile in 32-bit mode.
Be sure to compile the INMOD and notify exit routines in 32-bit mode so they are compatible with Teradata FastLoad even if it is for a 64-bit Linux machine.
Compile Syntax
where the following is true:
- gcc
- Call to the program that invokes the native C compiler
- -shared
- Flag that produces a shared object that can then be linked with other objects to form an executable
- -m32
- Generates code for a 32-bit environment.
- -fPIC
- Compiler option that generates Position Independent Code (PIC) for all user exit routines
- -o
- Output file name
- inmod.c
- An INMOD source file name
- inmod.so
- An INMOD shared object name