[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice
Subject:    Bug#33002: Cannot compile lib/formulacursor.cc, unknown problem
From:       Aaron Williams <aaron_williams () net ! com>
Date:       2001-09-27 21:08:54
[Download RAW message or body]


David Faure wrote:
> 
> On Jeudi 27 Septembre 2001 22:48, Aaron Williams wrote:
> > David Faure wrote:
> > >
> > > On Jeudi 27 Septembre 2001 21:42, Aaron Williams wrote:
> > > > I am unable to compile koffice for Solaris.  I am using QT 2.3.1 and KDE
> > > > 2.2.1, both of which I compiled from sources without too many problems.  I do
> > > > not know why gcc is complaining about formulacursor.cc.
> > >
> > > Which version of gcc, and with which version of libstdc++ ?
> > >
> > > > elementindex.h:32: syntax error before `;'
> > >
> > > typedef std::auto_ptr<ElementIndex> ElementIndexPtr;
> > >
> > > Given that <memory> is included previously, std::auto_ptr should be known.
> > > Does it help if you move this typedef to the end of this file
> > > (after }; and before KFORMULA_NAMESPACE_END) ?
> > >
> > > David.
> >
> > Moving the typedef does not help.  I am using libstdc++ version 2.10.  I
> > am using GCC 2.95.3 with --enable-shared when configuring it.  I used
> > this same setup to compile all of the KDE 2.2.1 modules without much
> > difficulty and for QT.
> 
> Hmm. I don't know libstdc++ enough to be sure.
> Can you try removing the std:: before auto_ptr ?
> Maybe adding "using namespace std;" if necessary.
> Can you check if /usr/include/g++-2/memory (I assume that's where it is) defines auto_ptr ?
> 

I checked /tools/kde/gnu/include/g++-3/memory and auto_ptr is defined. 
The libstdc++ is the version included with GCC 2.95.3.

I tried removing std:: and adding using namespace std; and neither made
any difference.  Perhapse this is a bug in gcc 2.95.3 for Sparc Solaris?

> --
> David FAURE, david@mandrakesoft.com, faure@kde.org
> http://perso.mandrakesoft.com/~david/ , http://www.konqueror.org/
> KDE, Making The Future of Computing Available Today
["aaron_williams.vcf" (text/x-vcard)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic