Updated Table 1-7: Thread-safe compile-and-link Commands for Client-Library of Open Client and Open Server Programmers Supplement for UNIX .
| Platform | Command |
|---|---|
| Linux x86 32-bit |
cc -m32 -D_REENTRANT -I$SYBASE/$SYBASE_OCS/include -Dnthread_linux=1 program.c
-L$SYBASE/$SYBASE_OCS/lib -lsybct_r -lsybtcl_r -lsybcs_r -lsybcomn_r -lsybintl_r -lsybunic
-lpthread -ldl -lnsl -lm -o program
|
| Linux x86-64 64bit |
cc -m64 -DSYB_LP64 -D_REENTRANT -I$SYBASE/$SYBASE_OCS/include -Dnthread_linuxamd64=1
program.c -L$SYBASE/$SYBASE_OCS/lib -lsybct_r64 -lsybcs_r64 -lsybtcl_r64 -lsybcomn_r64
-lsybintl_r64 -lsybunic64 -lpthread -ldl -lnsl -o program
|
| Linux POWER 32-bit |
xlc -q32 -D_REENTRANT -Wl,--export-dynamic -I$SYBASE/$SYBASE_OCS/include
-Dnthread_ibmplinux=1 program.c -L$SYBASE/$SYBASE_OCS/lib -lsybct_r -lsybtcl_r -lsybcs_r
-lsybcomn_r -lsybintl_r -lsybunic -lpthread -ldl -lnsl -lm -o program
|
| Linux POWER 64-bit |
xlc -q64 -DSYB_LP64 -D_REENTRANT -Wl,--export-dynamic -I$SYBASE/$SYBASE_OCS/include
-Dnthread_ibmplinux=1 program.c -L$SYBASE/$SYBASE_OCS/lib -lsybct_r64 -lsybtcl_r64 -lsybcs_r64
-lsybcomn_r64 -lsybintl_r64 -lsybunic64 -lpthread -ldl -lnsl -lm -o program
|