Libraries

Table 5-1 lists libraries that you should include if you want 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)

Sun 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-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 9000 (8xx) and HP Itanium

libclHP Transport Control Layer (system) libBSD – The BSD library (system) libc_r – C reentrant library libdld – (system)

IBM 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.

These steps are described in the following sections.