This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Help Linking on Solaris


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]