Use the following syntax to compile source files into a shared object module for INMOD or notify exit routines on a SPARC client system running Solaris:
where the following is true:
- cc
- Call to the program that invokes the native UNIX C compiler
- -dy
- Specifies to use dynamic linking
- -G
- Linker option that generates a shared object file
- -KPIC
- Compiler option that generates Position Independent Code (PIC)
- -m64
- Flag to build 64-bit shared libraries
- -o
- Specifies the output file name
- shared-object-name
- Name of the shared object fileThis is the name specified as the:
- INMOD= name parameter in the DEFINE command of the Teradata FastLoad job script
- EXIT name parameter of the NOTIFY command of the Teradata FastLoad job script
The shared-object-name can be any valid UNIX file name.When creating a shared object module for an INMOD routine, if the INMOD uses functions from an external library, then that library must be statically linked with the INMOD routine so that the Teradata FastLoad utility can resolve the external references. - sourcefile.c
- UNIX file names of the source files for the INMOD or Notify Exit routine