Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Using old libraries
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
peter_poulsen
Guru
Guru


Joined: 12 Feb 2003
Posts: 387
Location: Denmark

PostPosted: Fri Feb 14, 2003 4:58 pm    Post subject: Using old libraries Reply with quote

I have compiled QT3 with gcc-2.95.3. Now im trying to compile a small program, that uses QT, with gcc-3.2.1. I get quit a handfull of undefinded references.

[quote]
/tmp/ccktsCHb.o(.text+0x42): In function `main':
: undefined reference to `QWidget::QWidget[in-charge](QWidget*, char const*, unsigned)'
[/quote]

If I use gcc-config to switch to gcc-2.95.3 there is no problem. A simple hello world program compiles fine with gcc-3.2.1 (It is the only program that I have at had that doesn't use QT). Is there anyway around this?
Back to top
View user's profile Send private message
ebrostig
Bodhisattva
Bodhisattva


Joined: 20 Jul 2002
Posts: 3152
Location: Orlando, Fl

PostPosted: Fri Feb 14, 2003 8:24 pm    Post subject: Reply with quote

I would think the only solution is to re-emerge Qt with gcc 3.2.2.

Erik
_________________
'Yes, Firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
Back to top
View user's profile Send private message
peter_poulsen
Guru
Guru


Joined: 12 Feb 2003
Posts: 387
Location: Denmark

PostPosted: Fri Feb 14, 2003 10:49 pm    Post subject: Reply with quote

Is it possible to have QT installede twice? Once compiled with gcc-2.95.3 and once with gcc-3.2.1. I wouldn't minde having to tweak /etc/env.d/gcc-config/*

My problem is that don't know what I should change in the ebuild file.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum