From koffice Thu Sep 27 21:08:54 2001 From: Aaron Williams Date: Thu, 27 Sep 2001 21:08:54 +0000 To: koffice Subject: Bug#33002: Cannot compile lib/formulacursor.cc, unknown problem X-MARC-Message: https://marc.info/?l=koffice&m=100162563426775 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--------------020807FF533421FEA9B8C1E4" This is a multi-part message in MIME format. --------------020807FF533421FEA9B8C1E4 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 ElementIndexPtr; > > > > > > Given that 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 --------------020807FF533421FEA9B8C1E4 Content-Type: text/x-vcard; charset=us-ascii; name="aaron_williams.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Aaron Williams Content-Disposition: attachment; filename="aaron_williams.vcf" begin:vcard n:Williams;Aaron tel;cell:(510) 610-1314 tel;fax:(510) 574-4025 tel;work:(510) 574-2564 x-mozilla-html:TRUE url:http://www.net.com org:NET.com;Broadband adr:;;6500 Paseo Padre Parkway;Fremont;CA;94555;USA version:2.1 email;internet:aaron_williams@net.com title:Software Engineer x-mozilla-cpt:;0 fn:Aaron Williams end:vcard --------------020807FF533421FEA9B8C1E4--