John, thanks for the advice. I have compiled the stuff in src/frontends/kde against kde-1.1.2, as you suggested. I used the DEC cxx compiler to test the code, so haven't tried to link. The code compiles fine with this compiler; see attached patch. Incidentally, "make clean" doesn't remove the *_moc.C files here. This maybe because I haven't done the configure properly. It may, however, be because things aren't set up properly. Perhaps you'd have a look. Angus ps The patch was made in the kde directory, not in lyx base directory. A. On Fri, 15 Sep 2000, John Levon wrote: > On Fri, 15 Sep 2000, Angus Leeming wrote: > > I have found one more bug. Patch attached. > > > > l've only got as far as trying to compile FormUrl.C because things die in > > qevent.h: > > > > So far, I haven't got any further than this. > > Qt seems to have some horrible interactions with the X headers. If you > don't have them in the exact right order, you get an #error :( > > > Incidentally, I haven't actually configured my setup to use kde, just > > hacked the Makefile in src/frontends/kde a little. I'm running > > kde2.0Beta4 on this box. It was compiled my someone in Austria, I expect > > with g++. I run cxx here. Am I right in saying that I won't be able to > > link in the libraries because the two compilers are incompatible? Anybody > > got any opinions on/experiences of this? > > > > Angus > > I don't know anything about this ... but there is no ABI standard used by > all C++ compilers yet, although one is on the way with g++ 3.0 ... > > But I don't think you'll get too far with kde2.0 ! > > You need to install kde 1.1.x at least. That's why there are --with-qt-* > and --with-kde-* options - I use KDE2.0 sometimes at home as well, but I > have all the kde 1.1.x stuff under /usr/kde11. > > KDE2 comes later > > I'm 95% sure that KDE2 and Qt2 are not designed to be totally backward > compatible... > > john
Index: FormRef.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/kde/FormRef.C,v retrieving revision 1.1 diff -u -r1.1 FormRef.C --- FormRef.C 2000/09/14 09:09:56 1.1 +++ FormRef.C 2000/09/15 15:00:38 @@ -24,6 +24,8 @@ #include "formrefdialog.h" #include "debug.h" +using std::endl; + FormRef::FormRef(LyXView *v, Dialogs *d) : dialog_(0), lv_(v), d_(d), inset_(0), h_(0), u_(0), ih_(0), sort(0), gotowhere(GOTOREF), type(REF), refs(0) Index: FormRef.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/kde/FormRef.h,v retrieving revision 1.1 diff -u -r1.1 FormRef.h --- FormRef.h 2000/09/14 09:09:56 1.1 +++ FormRef.h 2000/09/15 15:00:52 @@ -49,11 +49,11 @@ private: enum Type { - REF, PAGEREF, VREF, VPAGEREF, PRETTYREF, + REF, PAGEREF, VREF, VPAGEREF, PRETTYREF }; enum GotoType { - GOTOREF, GOTOBACK, + GOTOREF, GOTOBACK }; /// Create the dialog if necessary, update it and display it. Index: FormToc.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/kde/FormToc.C,v retrieving revision 1.2 diff -u -r1.2 FormToc.C --- FormToc.C 2000/09/13 09:49:50 1.2 +++ FormToc.C 2000/09/15 15:00:52 @@ -31,6 +31,7 @@ using std::vector; using std::pair; using std::stack; +using std::endl; FormToc::FormToc(LyXView *v, Dialogs *d) : dialog_(0), lv_(v), d_(d), inset_(0), h_(0), u_(0), ih_(0), Index: FormToc.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/kde/FormToc.h,v retrieving revision 1.3 diff -u -r1.3 FormToc.h --- FormToc.h 2000/09/15 10:24:15 1.3 +++ FormToc.h 2000/09/15 15:00:52 @@ -55,7 +55,7 @@ void showTOC(InsetCommand * const); /// hierarchical tree - int doTree(vector < Buffer::TocItem>::const_iterator & , int, int, int); + int doTree(std::vector < Buffer::TocItem>::const_iterator & , int, int, int); /// update the Toc void updateToc(void); Index: formtocdialog.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/kde/formtocdialog.h,v retrieving revision 1.2 diff -u -r1.2 formtocdialog.h --- formtocdialog.h 2000/09/13 09:49:50 1.2 +++ formtocdialog.h 2000/09/15 15:00:52 @@ -81,7 +81,7 @@ form_->set_type(Buffer::TOC_LOA); break; default: - lyxerr[Debug::GUI] << "Unknown TOC combo selection." << endl; + lyxerr[Debug::GUI] << "Unknown TOC combo selection." << std::endl; break; } }