This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Help Linking on Solaris
- From: "Saikat Kanjilal" <kanjilal at adobe dot com>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Thu, 5 Dec 2002 11:18:21 -0800
- Subject: Help Linking on Solaris
- Reply-to: <Kanjilal at adobe dot com>
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