To use the Sybase thread-safe libraries, you must compile and link your code with thread safety options. You must use the -mt -D_REENTRANT option on the cc command.
On Sun Solaris 10 x64 (Opteron 64-bit), the CFLAGS for thread-safe libraries are:
CFLAGS = -g -Xa -D_REENTRANT -DSYB_LP64 -xtarget=opteron -xarch=amd64
The CFLAGS for non thread-safe libraries on Sun Solaris 10 x64 (Opteron 64-bit) are:
CFLAGS = -g -Xa -DSYB_LP64 -xtarget=opteron -xarch=amd64