Undefined Symbol

When I try to link a .so file I get the undefined symbol error. Though I have the library file in my system. The compile and linking commands used are as follows

g++ -m64 -g -Wall -I./include -c dxl_sample.c
g++ -o firstprogram -m64 -g -Wall -I./include -Bdynamic -L/export/home/bscsix3/lib/sun10.x -ldx dxl_sample.o
Undefined first referenced
symbol in file
dxl_init dxl_sample.o
ld: fatal: symbol referencing errors. No output written to firstprogram
collect2: ld returned 1 exit status
gmake: *** [firstprogram] Error 1

Result of uname -a
SunOS t5220x1039 5.10 Generic_147440-01 sun4v sparc SUNW,SPARC-Enterprise-T5220

Bumping up posts or double posting is not permitted in these forums.

Please read the rules, which you agreed to when you registered, if you have not already done so.

You may receive an infraction for this. If so, don't worry, just try to follow the rules more carefully. The infraction will expire in the near future

Thank You.

The UNIX and Linux Forums.