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:

Looking at the source of qevent.h, I read:
    enum Type {

        // NOTE: if you get a strange compiler error on the line with "None",
        //       it's probably because you're trying to include X11, which
        //       has a mess of #defines in it.  Put the messy X11 includes
        //       *AFTER* the nice clean Qt includes.

        None = 0,                               // invalid event
        ...
        };

So far, I haven't got any further than this.

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

PS, For what it's worth, here's the compiler error message.

cxx -std strict_ansi -nocleanup -DHAVE_CONFIG_H -I. -I. -I../../../src 
-I/usr/local/kde2/qt/include -I/usr/local/kde2/include -I../../../src/ 
-I../../../src/frontends/ -I../../.. -I../../.. 
-I../../../src/frontends/xforms -I../../../src/cheaders -I/usr/local/include 
-ptr ../../../lyx_cxx_repository -O2 -MD -c FormUrl.C -o FormUrl.o
cxx: Error: /usr/local/kde2/qt/include/qevent.h, line 49: expected an
          identifier
        None = 0,                               // invalid event
--------^
cxx: Error: /usr/local/kde2/qt/include/qevent.h, line 57: expected an
          identifier
        KeyPress = 6,                           // key pressed
--------^
cxx: Error: /usr/local/kde2/qt/include/qevent.h, line 58: expected an
          identifier
        KeyRelease = 7,                         // key released
--------^
cxx: Error: /usr/local/kde2/qt/include/qevent.h, line 59: expected an
          identifier
        FocusIn = 8,                            // keyboard focus received
--------^
cxx: Error: /usr/local/kde2/qt/include/qevent.h, line 60: expected an
          identifier
        FocusOut = 9,                           // keyboard focus lost
--------^
cxx: Error: /usr/local/kde2/qt/include/qfont.h, line 179: declaration does
          not declare anything
    static void locale_init();
----^
cxx: Error: FormUrl.C, line 97: no suitable user-defined conversion from
          "QString" to "const std::string" exists
        params.setContents(dialog_->url->text());
---------------------------^
cxx: Error: FormUrl.C, line 98: no suitable user-defined conversion from
          "QString" to "const std::string" exists
        params.setOptions(dialog_->urlname->text());
--------------------------^
cxx: Info: 8 errors detected in the compilation of "FormUrl.C".
make: *** [FormUrl.lo] Error 1                                                
  


On Fri, 15 Sep 2000, John Levon wrote:
> On Fri, 15 Sep 2000, Angus Leeming wrote:
> > Attached is a small patch allowing error and warning free compilation of
> > current CVS with DEC cxx.
> > Angus
>
> Hi Angus, thanks for looking out on the KDE stuff. I just wanted to ask,
> apart from the obvious std namespace stuff which I left out, is there
> anything else I should be wary of that g++ warnings won't pick up but DEC
> cxx doesn't like ? My aim is to cut down on you having to make these
> patches ;)
>
> thanks
> john
Index: ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/ChangeLog,v
retrieving revision 1.529
diff -u -r1.529 ChangeLog
--- ChangeLog	2000/09/15 10:24:13	1.529
+++ ChangeLog	2000/09/15 13:18:10
@@ -1,5 +1,10 @@
 2000-09-15  Angus Leeming  <[EMAIL PROTECTED]>
 
+	* src/frontends/kde/FormRef.h: removed trailing comma from enum
+	declarations
+
+2000-09-15  Angus Leeming  <[EMAIL PROTECTED]>
+
 	* src/frontends/kde/FormCitation.h: added some using directives.
 
 	* src/frontends/kde/FormToc.h: corrected definition of doTree.
Index: src/frontends/kde/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
--- src/frontends/kde/FormRef.h	2000/09/14 09:09:56	1.1
+++ src/frontends/kde/FormRef.h	2000/09/15 13:18:11
@@ -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.

Reply via email to