[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Error making shared lib



Hey All,

I just went and ressurected some old code I wrote 3 years ago. It
wants to take a couple of static libs, and make a shared lib out of
the whole bunch using the --whole-archive flag to ld.

Problem is I get a huge mess of 'multiple definition' errors all from
libgcc.a 

Any idea what's up?

Here is the link/compile line:
gcc -shared -Xlinker --whole-archive -L../bin-ppc-Linux -L./../kpl/bin-ppc-Linux -L/usr/lib/ -L/usr/lib/ -lpad

Here is an example of the errors:
/usr/lib/gcc-lib/powerpc-linux/2.95.4/libgcc.a(__dummy.o): In function `__dummy':
__dummy.o(.text+0x0): multiple definition of `__dummy'
/usr/lib/gcc-lib/powerpc-linux/2.95.4/libgcc.a(__dummy.o)(.text+0x0): first defined here


Thanks,
jas.



Reply to: