Compiling with gcc-4.3

John W. Eaton jwe at bevo.che.wisc.edu
Thu Jan 24 19:21:20 CST 2008


On 24-Jan-2008, Dupuis wrote:

| Hello,
| Debian SID is migrating to gfortran. A first lib, libblas3gf, appeared,
| compiled with gfortran-4.3. I tried to compile and link octave3.0 against
| it. The headers in g++-4.3 where cleanup up, see 
| http://gcc.gnu.org/gcc-4.3/porting_to.html
| for more information. This patch against octave3.0 makes g++  happy:
| --- src/mxarray.h.orig  2008-01-24 12:06:26.000000000 +0100
| +++ src/mxarray.h       2008-01-24 12:12:18.000000000 +0100
| @@ -90,6 +90,8 @@
| 
|  #if ! defined (MXARRAY_TYPEDEFS_ONLY)
| 
| +#include <cstring>
| +
|  class octave_value;
| 
|  #define DO_MUTABLE_METHOD(RET_T, METHOD_CALL) \
| 
| This was the only change required to the the compilation working.

I made this change to src/mxarray.h.in and checked it in the cvs head
and the 3.0 branch.

Thanks,

jwe


More information about the Octave-maintainers mailing list