octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave 2.9.6 available for ftp


From: Bill Denney
Subject: Re: Octave 2.9.6 available for ftp
Date: Fri, 9 Jun 2006 20:43:19 -0400 (EDT)

On Fri, 9 Jun 2006, John W. Eaton wrote:

On  9-Jun-2006, Tom Holroyd (NIH/NIMH) [E] wrote:

| $ g++ -c  -fPIC -I. -I.. -I../liboctave -I../src -I../libcruft/misc  
-DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -Wold-style-cast -g -O2 
dynamic-ld.cc -o pic/dynamic-ld.o
| dynamic-ld.cc: In member function `bool octave_dynamic_loader::do_load(const
|    std::string&, const std::string&)':
| dynamic-ld.cc:268: ISO C++ forbids casting between pointer-to-function and
|    pointer-to-object
| $ g++ -v
| Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
| Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-shared --enable-threads=posix 
--disable-checking --with-system-zlib --enable-__cxa_atexit 
--host=i386-redhat-linux
| Thread model: posix
| gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-54)

GCC 3.2 is old and this is a bug in GCC, not Octave.

But, if you want to stick with GCC 3.2 you can work around the bug by
using a C-style cast instead of a C++ reinterpret_cast.

I appear to be getting a similar error in cygwin:

g++ -c  -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG_H 
-mieee-fp -Wall -W -Wshadow -Wold-style-cast -g -O2 dynamic-ld.cc -o 
dynamic-ld.o
dynamic-ld.cc: In member function `bool octave_dynamic_loader::do_load(const
   std::string&, const std::string&)':
dynamic-ld.cc:268: error: ISO C++ forbids casting between pointer-to-function
   and pointer-to-object
make[2]: *** [dynamic-ld.o] Error 1
make[2]: Leaving directory `/tmp/octave-2.9.6/src'
make[1]: *** [src] Error 2
make[1]: Leaving directory `/tmp/octave-2.9.6'
make: *** [all] Error 2

$ g++ -v
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/specs
Configured with: /gcc/gcc-3.3.3-3/configure --verbose --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-languages=c,ada,c++,d,f77,java,objc,pascal --enable-nls --without-included-gettext --enable-libgcj --with-system-zlib --enable-interpreter --enable-threads=posix --enable-java-gc=boehm --enable-sjlj-exceptions --disable-version-specific-runtime-libs --disable-win32-registry
Thread model: posix
gcc version 3.3.3 (cygwin special)

Bill

--
Rimmer: "Step up to Red Alert!"
Kryten: "Sir, are you absolutely sure? It does mean changing the bulb."
  -- Red Dwarf, Series 6: Legion



reply via email to

[Prev in Thread] Current Thread [Next in Thread]