Bill Allombert on Thu, 22 May 2003 16:58:58 +0200


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

Re: plotQt.c


On Thu, May 22, 2003 at 10:48:17AM -0400, Igor Schein wrote:
> On Thu, May 15, 2003 at 04:41:21PM +0200, Karim BELABAS wrote:
> > Nils Skoruppa [pari-dev-2701] wrote:
> > > if someone would like to try plotQt.c, an alternative to plotX.c,
> > > plotgnuplot.c and in particular to plotnull.c, which uses Trolltech's Qt
> > > lib, you can download the file at
> > > http://wotan.algebra.math.uni-siegen.de/~countnumber/zaurus/
> > 
> > Hi,
> > 
> >   I've committed the above and a preliminary integration in
> > Configure to CVS. Use
> > 
> >    Configure --graphic=qt,
> 
> I have the following relevant RPMs on my RedHat 9 system:
> 
> qt-devel-3.1.1-6
> qt2-devel-2.3.1-13
> 
> I am getting a huge amount of unresolved symbol errors:
> 
> plotQt.o(.text+0x31): In function `__static_initialization_and_destruction_0(int, int)':
> : undefined reference to `QImage::outputFormats()'
> plotQt.o(.text+0x53): In function `__static_initialization_and_destruction_0(int, int)':
> 
> Which version of QT did you guy link against?

QT2 2.3.1 
QT3 3.0.3-20020329
QT3 3.1.1

You need to use the same g++ release as RH used for QT to compile
plotQt.o, because the C++ ABI was changed in both 2.96, 3.0, 3.1 and
3.2, though 3.2 and 3.3 have the same ABI.

You can also try to link with g++ instead of gcc.

Cheers,
Bill.