Compile-and-link lines for multithreaded applications

To compile and link Client-Library applications with libraries to take advantage of thread-safe support:

cc -I$SYBASE/$SYBASE_OCS/include 
-L$SYBASE/$SYBASE_OCS/lib program.c -lsybct_r 
-lsybtcl_r -lsybcs_r -lsybcomn_r -lsybintl_r 
-lsybunic  -lSystem -o program

Set the environment variable DYLD_LIBRARY_PATH to $SYBASE/$SYBASE_OCS/lib to run programs linked with shareable (dynamic) libraries. If you are running in debug mode, set DYLD_LIBRARY_PATH to $SYBASE/$SYBASE_OCS/devlib to run the program.