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

Teradata Parallel Data Pump Reference

Product
Parallel Data Pump
Release Number
15.00
Language
English (United States)
Last Update
2018-09-27
dita:id
B035-3021
lifecycle
previous
Product Category
Teradata Tools and Utilities

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.