Skip to contentSkip to conversation

link error

DISCUSSION yyy 3 participants 3 messages Jul 6, 2007

lore
Share & tools
lore

yyy

author
#0 lore raw

When i link .o file to a dynamic lib, errors appear, My link sentence such as:
g++ -g -shared -fPIC -o xxx.so xxx.o xxxx.o ....

the error such as:
.L303' referenced in section .rodata' of xxx.o: defined in discarded section `.gnu.linkonce.t._ZN3ALT9TVSPrintfIcEEiPT_PKS1_Pv' of xxx.o

any one has any advice, i'm appreciate.

#1 lore raw

Hello yyy,

Quoted 9 lines · On Fri, 06 Jul 2007 14:53:58 +0800 yyy <[email protected]> wrote:

When i link .o file to a dynamic lib, errors appear, My link sentence such as:
g++ -g -shared -fPIC -o xxx.so xxx.o xxxx.o ....

the error such as:
.L303' referenced in section .rodata' of xxx.o: defined in discarded section `.gnu.linkonce.t._ZN3ALT9TVSPrintfIcEEiPT_PKS1_Pv' of xxx.o

any one has any advice, i'm appreciate.

Maybe that could help:
http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3

Regards,

Signature · 1 line
wwp
#2 lore raw
In reply to yyy
Quoted 9 lines

When i link .o file to a dynamic lib, errors appear, My link sentence such as:
g++ -g -shared -fPIC -o xxx.so xxx.o xxxx.o ....

the error such as:
.L303' referenced in section .rodata' of xxx.o: defined in discarded section `.gnu.linkonce.t._ZN3ALT9TVSPrintfIcEEiPT_PKS1_Pv' of xxx.o

any one has any advice, i'm appreciate.

Sure, ask a fortuneteller.

Alternatively post your code here.

Leslie