help-octave
[Top][All Lists]
Advanced

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

Errors occured about log2 in building octave 3.1.50 on cygwin


From: Tatsuro MATSUOKA
Subject: Errors occured about log2 in building octave 3.1.50 on cygwin
Date: Tue, 22 Jul 2008 05:23:23 +0900 (JST)

Hello
Build on mingw did not go well.  
I have tried the cygwin build.

/opt/octave/gcc-3.4.4dw2/bin/g++ -c -I/opt/octave/gcc-3.4.4dw2/include
-I/opt/octave/octave-3.1.50/include -I/usr/X11R6/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
make[2]: *** [Cell.o] Error 1


ov-base.h:527: error: expected `)' before '/' token
==>
 virtual octave_value log2 (void) const;

ov.h:997: error: expected `)' before '/' token
==>
  MAPPER_FORWARD (log2)

config.log

configure:25797: checking for log2
configure:25861: /opt/octave/gcc-3.4.4dw2/bin/gcc -o conftest.exe -g -O2
-I/opt/octave/gcc-3.4.4dw2/include -I/opt/octave/octave-3.1.50/include 
-I/usr/X11R6/include 
-L/opt/octave/gcc-3.4.4dw2/lib -L/opt/octave/octave-3.1.50/lib -L/usr/X11R6/lib 
conftest.c -ldl
-lwsock32 -lblas -lhdf5 -lz -lm -lgmp -lGL.dll -lGL-1.dll -lGLU.dll -lGLU-1.dll 
-lwsock32 >&5
conftest.c:263: warning: conflicting types for built-in function 'log2'
/cygdrive/c/DOCUME~1/Tatsu/LOCALS~1/Temp/ccEMv7Jt.o: In function `main':
/usr/tatsu/cygwin/octaves/octave-3.1.50/conftest.c:282: undefined reference to 
`_log2'


* Define log2 to an innocuous variant, in case <limits.h> declares log2.
|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
| #define log2 innocuous_log2
| 
| /* System header to define __stub macros and hopefully few prototypes,
|     which can conflict with char log2 (); below.
|     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|     <limits.h> exists even on freestanding compilers.  */
| 
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 
| #undef log2
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char log2 ();
| /* The GNU C library defines this for functions which it implements
|     to always fail with ENOSYS.  Some functions are actually named
|     something starting with __ and the normal name is an alias.  */
| #if defined __stub_log2 || defined __stub___log2
| choke me
| #endif


What should I do for log2?

Regards

Tatsuro

--------------------------------------
Stop! Global Warming ~ Yahoo! JAPAN Earth Project
http://pr.mail.yahoo.co.jp/earthproject/


reply via email to

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