From koffice Thu Sep 27 19:42:43 2001 From: Aaron Williams Date: Thu, 27 Sep 2001 19:42:43 +0000 To: koffice Subject: Bug#33002: Cannot compile lib/formulacursor.cc, unknown problem X-MARC-Message: https://marc.info/?l=koffice&m=100162113207155 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. I know this is a repeat of info I posted for bug 33002, but it was too much info for the mailing list. The iostream warnings can be ignored since I always get that warning and it hasn't caused any problems. -Aaron c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../lib/kofficeui -I../../lib/kofficeui -I../../lib/kofficecore -I../../lib/kofficecore -I../../lib/store -I../../lib/store -I../../lib/kwmf -I../../lib/kwmf -I/tools/kde/2.2/Solaris7/include -I/tools/qt/qt-2.3.1/include -I/tools/qt/share/include -fno-builtin -Wnon-virtual-dtor -Wno-long-long -g -O2 -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST -c formulacursor.cc -fPIC -DPIC -o .libs/formulacursor.o In file included from /home/aaronw/gnu/include/g++/iostream.h:31, from /home/aaronw/gnu/include/g++/iostream:6, from elementindex.h:24, from indexelement.h:26, from formulacursor.cc:25: /home/aaronw/gnu/include/g++/streambuf.h: In method `ios::~ios()': /home/aaronw/gnu/include/g++/streambuf.h:485: warning: `void *' is not a pointer-to-object type In file included from indexelement.h:26, from formulacursor.cc:25: elementindex.h: At top level: elementindex.h:32: syntax error before `;' elementindex.h:49: `FormulaCursor' was not declared in this scope elementindex.h:49: parse error before `,' elementindex.h:56: `FormulaCursor' was not declared in this scope elementindex.h:56: parse error before `)' elementindex.h:66: warning: ANSI C++ forbids declaration `BasicElement' with no type elementindex.h:66: `BasicElement' declared as a `virtual' field elementindex.h:66: parse error before `*' In file included from formulacursor.cc:25: indexelement.h:35: parse error before `{' indexelement.h:42: `BasicElement' was not declared in this scope indexelement.h:42: `parent' was not declared in this scope indexelement.h:42: warning: ANSI C++ forbids declaration `IndexElement' with no type indexelement.h:43: destructors must be member functions indexelement.h:42: previous non-function declaration `int KFormula::IndexElement' indexelement.h:43: conflicts with function declaration `void KFormula::IndexElement()' indexelement.h:51: syntax error before `*' indexelement.h:65: parse error before `&' indexelement.h:65: virtual outside class declaration indexelement.h:73: parse error before `&' indexelement.h:76: virtual outside class declaration indexelement.h:92: `FormulaCursor' was not declared in this scope indexelement.h:92: `cursor' was not declared in this scope indexelement.h:92: `BasicElement' was not declared in this scope indexelement.h:92: `from' was not declared in this scope indexelement.h:92: virtual outside class declaration indexelement.h:92: variable or field `moveLeft' declared void indexelement.h:92: warning: initializer list being treated as compound expression