Help Linking on Solaris

Saikat Kanjilal kanjilal@adobe.com
Thu Dec 5 11:19:00 GMT 2002


Hello:
I am trying to build a shared object library file that links in a static
library, I am using Solaris 7 and gcc version 2.95.2
Listed below is my build script:

/usr/local/bin/g++ -Wl,-G -W1,-dy -fPIC -I. -I/usr/platform/SUNW,Ultra-4/lib
 -I/
usr/SUNWj3dev/reloc/j2se/include -I/usr/SUNWj3dev/reloc/j2se/include/solaris
 -o
libSerialNumInfo.so DecoderAdapter.o ./libWCDSNDecoder.a

Can someone see any problems in the above script, the above script links
fine but I keep getting an undefined symbol error when I go to run my
application.  I am writing a java application to interface with my c++ code
and this application links in the shared object library file at runtime

Any help would be appreciated

SK



More information about the Gcc-help mailing list