Libraries

Table 5-1 lists libraries to include to take full advantage of all Embedded SQL/COBOL capabilities. The first row in the table lists libraries that all platforms can use. Subsequent rows list libraries specific for each platform:

Table 5-1: Platform-specific libraries for Embedded SQL/COBOL

Platform

Supported libraries

All platforms

libsybcobctCOBOL interface to Client-Library and CS-Library (Sybase) libsybct – Client-Library (Sybase) libsybcsCS-Library (Sybase) libsybunic – Unicode-Library (Sybase internal) libsybcomn – an internal shared-utility library (Sybase internal) libsybintl – internationalization support library (Sybase internal) libsybtcl – transport control layer (Sybase internal) libm – standard UNIX math library (system)

Solaris platforms

libpthread – thread library (system) libsocket – socket network library (system) libnsl – a network library (system) libdl – dynamic loader library (system) libthread – native thread library (system)

HP HP-UX PA-RISC

libsybcobct.sl – shared dynamic 32-bit veneer layer library libsybcobct_r.sl – shared dynamic 32-bit veneer layer library (reentrant version) libsybcobct64.sl – shared dynamic 64-bit veneer layer library libsybcobct_r64.sl – shared dynamic 64-bit veneer layer library (reentrant version)

HP HP-UX Itanium

libclHP transport control layer (system) libBSD – the BSD library (system) libc_r – C reentrant library libdld – dynamic loader library (system)

IBM AIX RS/6000

libc_r – C reentrant library libpthread – thread library (system)

Linux x86 32-bit

libsybcobctCOBOL interface to Client-Library and CS-Library (Sybase) libsybct – Client-Library (Sybase) libsybcsCS-Library (Sybase) libsybtcl – transport control layer (Sybase internal) libsybcomn – an internal shared-utility library (Sybase internal) libsybintl – internationalization support library (Sybase internal) libsybunic – Unicode-Library (Sybase internal) libdl – dynamic loader library (system) libnsl – a network library (system) libm – standard UNIX math library (system)

All other platforms that support ESQL/ COBOL

libsybcobct.so – shared dynamic 32-bit veneer layer library libsybcobct_r.so – shared dynamic 32-bit veneer layer library (reentrant version) libsybcobct64.so – shared dynamic 64-bit veneer layer library libsybcobct_r64.so – shared dynamic 64-bit veneer layer library (reentrant version)

There are three basic steps to building an executable program from an Embedded SQL/COBOL application:

  1. Precompile the application.

  2. Compile and link the COBOL source code generated by the precompiler.

  3. Load any precompiler-generated stored procedures.