From bug-octave-request at bevo dot che dot wisc dot edu Thu Nov 20 13:01:21 2003 Subject: Build failure with gcc-3.4 prerelease From: "John W. Eaton" To: "Billinghurst, David (CALCRTS)" Cc: Date: Thu, 20 Nov 2003 12:58:31 -0600 On 19-Nov-2003, Billinghurst, David (CALCRTS) wrote: | I am having problems building octave on an SGI Origin 300. I have | done it numerous times before, but upgrades to hardware, operating | systems, gcc and octave have combined against me. | | Anyway, one of the things I tried was to build octave-2.1.51 with | gcc-3.4 from CVS. This failed. Not sure if it is a compiler bug or | if gcc is just getting fussier. After poking around the current gcc sources, I found that these errors are due to a change that makes g++ more standard conforming. The fix is to change things like void resize (int r, int c) { resize_no_fill (r, c); } in Array2.h to be void resize (int r, int c) { this->resize_no_fill (r, c); } instead. The reason this change is needed is explained in the current gcc 3.4 manual in the section Trouble -> C++ Misunderstandings -> Name lookup I'll see if I can fix these problems for 2.1.52. I'm trying to update my copy of the gcc sources from CVS now so I can build it and then try building Octave with the newer compiler. Thanks, jwe ------------------------------------------------------------- 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 -------------------------------------------------------------