You write an Open Server application by using calls to Server-Library and CS-Library routines to set up structures, listen for connection requests from clients and other servers, process client requests, and clean up memory. A gateway application also includes calls to Client-Library routines.
An Open Server application program is compiled in the same way as any other C language program. On most UNIX platforms, you need to include these libraries when you compile and link your program (file names or extensions may vary by platform):
libsybsrv.a
libsybcs.a
libsybcomn.a
libsybtcl.a
libsybintl.a
libsybblk.a – if you are using bulk copy routines
libsybct.a – if you are using a gateway
The library files are located in the $SYBASE/$SYBASE_OCS/lib directory.