Michael Schmitt <[EMAIL PROTECTED]> writes:
| Hi Allan and all others,
|
| I tried to compile LyX with Sun CC again but there are still some
| showstoppers in the code.
To me it seems to be showstoppers in the compiler... all the changes
(almost) in your patch is because of compiler bugs.
| BTW: I am curious to know whether gcc-3.0 compiles LyX. Have you ever
| tried to use it?
Sure, all the time.
| "/usr/include/sys/time.h", line 50: Error: Type name expected
| instead of "time_t".
Hmm.. what is this?
Perhaps this can be fixed by moving the ctime header down after the
unistd.h header.
| Index: src/lyxparagraph.h
| ===================================================================
| RCS file: /cvs/lyx/lyx-devel/src/lyxparagraph.h,v
| retrieving revision 1.78
| diff -u -r1.78 lyxparagraph.h
| --- src/lyxparagraph.h 2001/05/30 13:53:30 1.78
| +++ src/lyxparagraph.h 2001/06/24 21:06:53
| @@ -352,7 +352,6 @@
| #endif
| ///
| bool linuxDocConvertChar(char c, string & sgml_string);
| -private:
| ///
| struct InsetTable {
| ///
| @@ -362,6 +361,7 @@
| ///
| InsetTable(size_type p, Inset * i) : pos(p), inset(i) {}
| };
| +private:
I don't get the rationale for this change. Can you get us the compiler
error?
| Index: src/frontends/controllers/ControlBibitem.C
| ===================================================================
| RCS file: /cvs/lyx/lyx-devel/src/frontends/controllers/ControlBibitem.C,v
| retrieving revision 1.9
| diff -u -r1.9 ControlBibitem.C
| --- src/frontends/controllers/ControlBibitem.C 2001/06/13 15:11:16 1.9
| +++ src/frontends/controllers/ControlBibitem.C 2001/06/24 21:06:53
| @@ -31,7 +31,7 @@
| ControlBibitem::ControlBibitem(LyXView & lv, Dialogs & d)
| : ControlCommand(lv, d)
| {
| - d_.showBibitem.connect(slot(this, &ControlBibitem::showInset));
| + d_.showBibitem.connect(slot(this, &showInset));
| }
This change breaks gcc 2.96 (and probably 3.0), &showInset is not
allowed according to the standard.
It might be solvable by loosing up the access control for the classes
in question.
| Index: src/frontends/xforms/Toolbar_pimpl.h
| ===================================================================
| RCS file: /cvs/lyx/lyx-devel/src/frontends/xforms/Toolbar_pimpl.h,v
| retrieving revision 1.6
| diff -u -r1.6 Toolbar_pimpl.h
| --- src/frontends/xforms/Toolbar_pimpl.h 2001/05/30 13:53:37 1.6
| +++ src/frontends/xforms/Toolbar_pimpl.h 2001/06/24 21:06:54
| @@ -29,6 +29,23 @@
|
| /** The LyX xforms toolbar class
| */
| +struct toolbarItem
| +{
| + ///
| + int action;
| + ///
| + FL_OBJECT * icon;
| + ///
| + toolbarItem();
| + ///
| + void clean();
| + ///
| + ~toolbarItem();
| + ///
| + toolbarItem & operator=(toolbarItem const & ti);
| +};
Why is toobarItem moved out of the Pimpl?
--
Lgb