Linkage Script for a 32-Bit Application on 32-Bit Red Hat Linux - Teradata Preprocessor2

Teradata® Preprocessor2 for Embedded SQL Programmer Guide

Product
Teradata Preprocessor2
Release Number
17.00
Published
June 2020
Language
English (United States)
Last Update
2020-06-19
dita:mapPath
whb1544831946911.ditamap
dita:ditavalPath
obe1474387269547.ditaval
dita:id
B035-2446
lifecycle
previous
Product Category
Teradata Tools and Utilities
cc <sourcefile.c> -o <executablename> -lppruntim -ltdusr -lcliv2 -lnsl

Red Hat Linux 3.0

A compilation error occurs if:

  • an attempt is made to compile a PP2 application on Red Hat Linux 3.0
  • PPCMain has been built on Red Hat Linux 7.3

Fixing the Compilation Error (RedHat 3.0)

  1. Add this code to the .pc file:
    =====================================================================
    #include <ctype.h> __const unsigned short int *__ctype_b;
    __const __int32_t *__ctype_tolower;
    __const __int32_t *__ctype_toupper;
    void ctSetup()
    {
    __ctype_b = *(__ctype_b_loc());
    } 
    =====================================================================
  2. Call ctSetup from main() as first statement.