about log2 for octave-3.1.51 (Not 3.1.50)

Tatsuro MATSUOKA tmacchant at yahoo.co.jp
Sat Jul 26 02:50:08 CDT 2008


Hello Jaroslav

Thanks!!

Your changeset worked well to remove the compile error on cygwin 
which has been treated the threds.

However another compile error occured.

I will vote it as another thread.

Regards

Tatsuro


--- Jaroslav Hajek <highegg at gmail.com> wrote:

> --- a/liboctave/lo-math.h
> +++ b/liboctave/lo-math.h
> @@ -25,6 +25,10 @@
>  
>  #if defined (__cplusplus)
>  #include <cmath>
> +// if #undef log2 is missing in cmath, undef it here
> +#if defined (log2)
> +#undef log2
> +#endif
>  #else
>  #include <math.h>
>  #endif
> 

/opt/octave/gcc-3.4.4dw2/bin/g++ -c -I/opt/octave/gcc-3.4.4dw2/include -I/usr/include
-I/opt/octave/octave-3.1.51/include  -I. -I.. -I../liboctave -I../src -I../libcruft/misc 
-DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -Wold-style-cast -g -O2 Cell.cc -o Cell.o
In file included from ov.h:59,
                 from oct-obj.h:33,
                 from Cell.h:32,
                 from Cell.cc:29:
ov-base.h:527: error: expected `)' before '/' token
In file included from oct-obj.h:33,
                 from Cell.h:32,
                 from Cell.cc:29:
ov.h:997: error: expected `)' before '/' token


--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/


More information about the Bug-octave mailing list