To build applications on the IBM platform using shared libraries, set up your makefile to use a link statement like this (where export files are named *.exp):
xlc_r -g -D_THREAD_SAFE -I. \ -I$SYBASE/$SYBASE_OCS/include \ -DDEBUG -Dnthread_rs6000=1 multthrd.c \ thrdutil.o thrdfunc.o \ -bI:$SYBASE/$SYBASE_OCS/libct_r.exp \ -bI:$SYBASE/$SYBASE_OCS/libcs_r.exp \ -bI:$SYBASE/$SYBASE_OCS/libcomn_r.exp \ -lm -o multthrd
In order to execute such an application, make sure that:
The shared libraries are in the directory $SYBASE/$SYBASE_OCS/lib.
The LIBPATH environment variable is set to:
$SYBASE/$SYBASE_OCS/lib:/lib
The configuration file $SYBASE/$SYBASE_OCS/config/libtcl.cfg specifies the correct driver.