You are not logged in.

#1 2009-04-04 08:55:44

snack
Member
From: Italy
Registered: 2009-01-13
Posts: 861

Linking error due to two installed versions of gcc?

Hello, I have a problem with gcc (I guess). I have both gcc and gcc-3.4 installed on my system because I need gcc 3 to compile an aging data analysis software. This software links against another software suite (CERN's ROOT 5.20, for whom might be interested) which I would like to compile with gcc-3.4 too. I set up the configuration to compile ROOT with gcc-3.4, but I get lots of errors like this:

`.L298' referenced in section `.rodata' of cint/cint/src/value.o: defined in discarded section `.gnu.linkonce.t._Z11G__convertTIeET_PK8G__value' of cint/cint/src/value.o

during the linking. Some people told me that this could be due to the fact that g++-3.4 is trying to link gcc 4 standard libraries. My question is: where are the gcc-3.4 standard libraries and how can I make sure that 3.4 linker is linking against 3.4 libraries?
Or maybe the error is due to something else?
Thanks everyone for the support!

Offline

#2 2009-04-06 12:19:49

Lexion
Member
Registered: 2008-03-23
Posts: 510

Re: Linking error due to two installed versions of gcc?

Are you using gcc-3.4, gcc-3, or ld for your linking?  If you are using gcc-*, try using ld and see what happens.


urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand

Offline

#3 2009-04-07 07:21:43

snack
Member
From: Italy
Registered: 2009-01-13
Posts: 861

Re: Linking error due to two installed versions of gcc?

I use g++-3.4 to link. The gcc 3 package I installed is gcc34 from extra. I'll try to use ld and see if it solves the problem, thank you.

Offline

Board footer

Powered by FluxBB