Building applications using shared libraries

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: