15.00 - Compiling and Linking a C INMOD on a UNIX System-based Client - Parallel Data Pump

Teradata Parallel Data Pump Reference

prodname
Parallel Data Pump
vrm_release
15.00
category
Programming Reference
featnum
B035-3021-034K

Compiling and Linking a C INMOD on a UNIX Systembased Client

Note: For a description of the syntax diagrams used in this book, see Appendix A: “How to Read Syntax Diagrams.”

The following syntax example can be used to compile a C INMOD on a UNIX system‑based client.

Compile Syntax

where

 

Syntax element

Description

cc

Program that invokes the native C compiler

c

Linker option specifying to compile without linking to produce an output file (a.out)

inmod.c

A C source module for the INMOD

Use the following syntax example to link the object modules into a shared object module.

Link Syntax

where

 

Syntax element

Description

ld

Invokes the UNIX linker editor

dy

Specifies to use dynamic linking

G

Specifies to create a shared object

inmod.o

Describes an object module derived from the compile step

o

Specifies the output filename; default is a.out

inmod.so

Specifies the resulting shared object module

This is the userspecified name in the IMPORT command.

Note: Object modules can be linked into shared objects or shared libraries (for example, .so or .sl extension respectively) on HPUX Itanium.