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:
Platform |
Supported libraries |
---|---|
All platforms |
libsybcobct – COBOL interface to Client-Library and CS-Library (Sybase) libsybct – Client-Library (Sybase) libsybcs – CS-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 |
libcl – HP 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 |
libsybcobct – COBOL interface to Client-Library and CS-Library (Sybase) libsybct – Client-Library (Sybase) libsybcs – CS-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:
Precompile the application.
Compile and link the COBOL source code generated by the precompiler.
Load any precompiler-generated stored procedures.
These steps are described in the following sections.