From bug-octave-request at bevo dot che dot wisc dot edu Mon Dec 9 07:50:42 2002 Subject: Re: Compilation troubles: 2.1.40 and SuSE Linux 7.2 From: Obed Sands To: "John W. Eaton" CC: Harald Anlauf , bug-octave@bevo.che.wisc.edu Date: Mon, 09 Dec 2002 08:50:12 -0500 John, The patch fixed the problem just fine--compliation proceeds and the build checks out with the usual 4 exceptions. Thanks for the assist! Scott Sands "John W. Eaton" wrote: > > On 1-Dec-2002, Obed Sands wrote: > > | I get the errors when trying to compile 2.1.40 under SuSE Linux 7.2 > | (i.e. gcc 2.95.3) I configured with --enable-shared and > | --enable-lite-kernel. Something about variables with initializers but > | bad type in DASPK.cc. I do not speak C++ at all. Any help is > | appreciated. > > Try the following patch. > > jwe > > Index: libcruft/misc/quit.h > =================================================================== > RCS file: /usr/local/cvsroot/octave/libcruft/misc/quit.h,v > retrieving revision 1.5 > retrieving revision 1.6 > diff -u -r1.5 -r1.6 > --- libcruft/misc/quit.h 15 Nov 2002 20:33:47 -0000 1.5 > +++ libcruft/misc/quit.h 20 Nov 2002 22:27:01 -0000 1.6 > at @ -32,6 +32,10 @@ > #include > #include > > +#ifdef __cplusplus > +#include > +#endif > + > #if defined (OCTAVE_HAVE_SIG_JUMP) > > typedef sigjmp_buf octave_jmp_buf; > at @ -109,6 +113,8 @@ > } \ > while (0) > > +#ifdef __cplusplus > + > #define BEGIN_INTERRUPT_WITH_EXCEPTIONS \ > sig_atomic_t saved_octave_interrupt_immediately = octave_interrupt_immediately; \ > \ > at @ -131,6 +137,7 @@ > } \ > \ > octave_interrupt_immediately = saved_octave_interrupt_immediately > +#endif > > #ifdef __cplusplus > } ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------