Unresolved symbols

Hello experts ,

i have some strange problem,
i wanted to create a shared object in AIX 5.3 for which i have compiled all my .cxx to .o which worked fine and then i created the .so from them , but when i do

nm -Bo sample.so ,

i have many unresolved symbol, including printf ,scanf,open,close()

all standard function for which i think there is a problem with libc.a,

how to solve this problem. please help.

i am using compiling and linking options as follows:

linking :makeC++SharedLib_r -o sample.so -p0 -q64 -b64 -bbigtoc /user/pmsdev/lbr/AIX/lib64/sys.a *.o -X64 -lm -lpthread -lz -L/usr/vac/lib -L/usr/lib

compiling :xlC-q64 -qrtti -qarch=com -O3 -qstrict -qfloat=fltint:rsqrt -qdbcs -qidirfirst -qlanglvl=classic -qalloca -qobjmode=classic -qthreaded -qwarn64 -D_POSIX_C_SOURCE=199506L