This is the mail archive of the
mailing list for the GCC project.
Problem creating shared object library that references another
- From: "Glen Cordrey" <glen dot cordrey at digitalfocus dot com>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Fri, 15 Mar 2002 11:45:41 -0500
- Subject: Problem creating shared object library that references another
I am attempting to create a .so that contains code that uses another .so.
Following directions found on the web I am doing
gcc -shared -Wl,-soname,libbar_java.so bar.o libfoo.so -o
where bar contains code that depends on libfoo.so. However, this command
ld: warning: option -o appears more than once, first setting taken
ld: fatal: file libBondCalculator.so: unknown file type
ld: fatal: File processing errors. No output written to libBondCalculator.so
collect2: ld returned 1 exit status
I am using version 2.95.2 of gcc on Solaris. I've noticed that the man page
for gcc doesn't
list soname as an option.
Does anyone have any suggestions?
Glen Cordrey Digital Focus
office: 703.561.5917 13825 Sunrise Valley Dr.
cell: 571.220.8955 Herndon, VA 20171