[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Compile error - koffice/filters/kword/msword
From: Brad Hards <bhards () bigpond ! net ! au>
Date: 2003-09-26 7:05:38
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm running a current version of wv2 (from CVS), and a current CVS of koffice.
The compile terminates as follows (word wrapping turned off in KMail :)
/bin/sh ../../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. \
-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/usr/local/include \
-I/usr/local/include/libgsf-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include \
-I/usr/include/libxml2 -I/usr/local/kde/include \
-I/home/bradh/coding/cvs-vers/kde-head/qt-copy//include -I/usr/X11R6/include \
-DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W \
-Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align \
-Wconversion -Wchar-subscripts -O2 -Wformat-security -Wmissing-format-attribute \
-fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST \
-DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o document.lo `test -f \
'document.cpp' || echo './'`document.cpp
cc1plus: warning: changing search order for system directory "/usr/local/include"
cc1plus: warning: as it has already been specified as a non-system directory
In file included from document.cpp:23:
graphicshandler.h:33: redefinition of `class wvWare::PictureHandler'
/usr/local/include/wv2/handlers.h:176: previous definition of `class \
wvWare::PictureHandler' graphicshandler.h:33: confused by earlier errors, bailing out
make[4]: *** [document.lo] Error 1
make[4]: Leaving directory \
`/home/bradh/coding/cvs-vers/kde-head/koffice/filters/kword/msword' make[3]: *** \
[all-recursive] Error 1 make[3]: Leaving directory \
`/home/bradh/coding/cvs-vers/kde-head/koffice/filters/kword' make[2]: *** \
[all-recursive] Error 1 make[2]: Leaving directory \
`/home/bradh/coding/cvs-vers/kde-head/koffice/filters' make[1]: *** [all-recursive] \
Error 1 make[1]: Leaving directory `/home/bradh/coding/cvs-vers/kde-head/koffice'
make: *** [all] Error 2
On a punt, I tried this:
Index: graphicshandler.h
===================================================================
RCS file: /home/kde/koffice/filters/kword/msword/graphicshandler.h,v
retrieving revision 1.6
diff -u -4 -p -r1.6 graphicshandler.h
- --- graphicshandler.h 22 Sep 2003 13:03:39 -0000 1.6
+++ graphicshandler.h 26 Sep 2003 07:03:37 -0000
@@ -25,17 +25,8 @@
#include <qobject.h>
#include "document.h"
- -#ifndef IMAGE_IMPORT
- -namespace wvWare
- -{
- - class PictureHandler
- - {
- - };
- -}
- -#endif // IMAGE_IMPORT
- -
class KWordPictureHandler : public QObject, public wvWare::PictureHandler
{
Q_OBJECT
public:
and it now compile a bit further. But I certainly don't understand the
intent of the original code, so I'm certainly not going to commit this,
freeze or no freeze. Help!
Brad
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE/c+VCW6pHgIdAuOMRAjtUAJ4+oZxAENCncqF4lZ0gT+gtD+/ijQCfduZ9
BSyfeBedr8cy1wQWAQvOtmU=
=+dtZ
-----END PGP SIGNATURE-----
_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic