R
Rob Amboss
Hi all
I try to link against a library "linktest" which contains the function
that I wanna link to. However, it seems that there is also the same
function defined in the /usr/bin/ld if i understand the errormessage
below correctly.
...//libtest.a(bn86-elf.o)(.text+0x860): In function `xxx':
: multiple definition of `test_words'
/tmp/cc1BVZOC.o(.text+0x0):test.c:83: first defined here
/usr/bin/ld: Warning: size of symbol `xxx' changed from 863 in
/tmp/cc1BVZOC.o to 1394 in ..//libtest.a(bn86-elf.o)
collect2: ld returned 1 exit status
Is there a way to tell the linker to take the function from the library
and ignore the other one in the usr/bin/ld?
Thanks!
I try to link against a library "linktest" which contains the function
that I wanna link to. However, it seems that there is also the same
function defined in the /usr/bin/ld if i understand the errormessage
below correctly.
...//libtest.a(bn86-elf.o)(.text+0x860): In function `xxx':
: multiple definition of `test_words'
/tmp/cc1BVZOC.o(.text+0x0):test.c:83: first defined here
/usr/bin/ld: Warning: size of symbol `xxx' changed from 863 in
/tmp/cc1BVZOC.o to 1394 in ..//libtest.a(bn86-elf.o)
collect2: ld returned 1 exit status
Is there a way to tell the linker to take the function from the library
and ignore the other one in the usr/bin/ld?
Thanks!