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

Re: multiple definition of `_init'

On Tue, Jul 25, 2006 at 01:30:34PM +0200, Martin Michlmayr wrote:
> While building rsplib, I get the following errors.  Is that an
> application or glibc problem?

Application. You can't link the same object files in more than one time.

> g++ -shared /usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.1.2/crtbeginS.o  .libs/mutex.o .libs/thread.o  -L/usr/lib/gcc/x86_64-linux-gnu/4.1.2 -L/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.1.2/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/crtn.o  -o .libs/libcppthread.so.0.0.0

It lists crtbeginS.o explicitely, which is already included into the
link list by gcc. Also the whole -L definitions looks pretty wrong. It
lists the default paths again.


You!  What PLANET is this!
		-- McCoy, "The City on the Edge of Forever", stardate 3134.0

Attachment: signature.asc
Description: Digital signature

Reply to: