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: Schloegl Alois
Subject: Re: Octave 2.9.6 available for ftp
Date: Sat, 10 Jun 2006 19:38:08 +0200
User-agent: Internet Messaging Program (IMP) H3 (4.2-cvs)

Quoting "John W. Eaton" <address@hidden>:

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.

jwe


Would you send a patch,please? I do get the same error with g++ v3.3.5


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: error: ISO C++ forbids casting between pointer-to-function
   and pointer-to-object
make[2]: *** [pic/dynamic-ld.o] Error 1
make[2]: Leaving directory `/usr/local/src/octave/src'
make[1]: *** [src] Error 2
make[1]: Leaving directory `/usr/local/src/octave'
make: *** [all] Error 2
address@hidden
tk213047152238:/usr/local/src/octave$ g++ -v
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --enable-__cxa_atexit --with-system-zlib --enable-nls --without-included-gettext --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.5 (Dg++ -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: error: ISO C++ forbids casting between pointer-to-function
   and pointer-to-object
make[2]: *** [pic/dynamic-ld.o] Error 1
make[2]: Leaving directory `/usr/local/src/octave/src'
make[1]: *** [src] Error 2
make[1]: Leaving directory `/usr/local/src/octave'
make: *** [all] Error 2

address@hidden:/usr/local/src/octave$ g++ -v
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --enable-__cxa_atexit --with-system-zlib --enable-nls --without-included-gettext --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.5 (Debian 1:3.3.5-13)
ebian 1:3.3.5-13)







reply via email to

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