[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compile error of src/file-io.cc on octave-3.3.52+ by MinGW (GCC-4.5.0)
From: |
John W. Eaton |
Subject: |
Compile error of src/file-io.cc on octave-3.3.52+ by MinGW (GCC-4.5.0) |
Date: |
Sat, 2 Oct 2010 03:08:07 -0400 |
On 2-Oct-2010, Tatsuro MATSUOKA wrote:
| Hello
|
| I have checked the recent development source.
|
| changeset id : 11075 4e31d44a9763
|
| In compiling the src/file-io.cc, I have met the following error.
|
|
| libtool: compile: g++ -shared-libgcc -DHAVE_CONFIG_H -I.
-I../../../hg/octave-work/src -I..
| -I/WinDevTools/include -I/GnuWin32/include -I../libgnu
-I../../../hg/octave-work/libgnu
| -I../../../hg/octave-work/libcruft/misc -I../liboctave
-I../../../hg/octave-work/liboctave -I.
| -I../../../hg/octave-work/src -I/WinDevTools/include -I/GnuWin32/include -O3
-fomit-frame-pointer
| -DHAVE_CONFIG_H -mieee-fp -IC:/Programs/GnuWin32/include
-I/WinDevTools/include/freetype2
| -I/WinDevTools/include -IC:/Programs/WinDevTools/include -Wall -W -Wshadow
-Wold-style-cast -Wformat
| -O3 -fomit-frame-pointer -O3 -fomit-frame-pointer -MT
liboctinterp_la-file-io.lo -MD -MP -MF
| .deps/liboctinterp_la-file-io.Tpo -c ../../../hg/octave-work/src/file-io.cc
-DDLL_EXPORT -DPIC -o
| .libs/liboctinterp_la-file-io.o
| In file included from ../../../hg/octave-work/src/oct-prcstrm.h:27:0,
| from ../../../hg/octave-work/src/file-io.cc:71:
| ../../../hg/octave-work/src/oct-stdstrm.h: In constructor
| 'octave_stdiostream::octave_stdiostream(const std::string&, FILE*,
std::ios_base::openmode,
| oct_mach_info::float_format, int (*)(FILE*))':
| ../../../hg/octave-work/src/oct-stdstrm.h:111:86: error: expected
id-expression before '(' token
| In file included from ../../../hg/octave-work/src/file-io.cc:77:0:
| ../../../hg/octave-work/src/variables.h: At global scope:
| ../../../hg/octave-work/src/variables.h:106:40: warning: use of old-style cast
| ../../../hg/octave-work/src/variables.h:106:65: warning: use of old-style cast
| ../../../hg/octave-work/src/file-io.cc: In function 'octave_stream
do_stream_open(const std::string&,
| const std::string&, const std::string&, int&)':
| ../../../hg/octave-work/src/file-io.cc:497:30: error: expected id-expression
before '(' token
| make[3]: *** [liboctinterp_la-file-io.lo] Error 1
|
|
|
| Any suggestions?
Is "fileno" defined as a macro on your system? If so, what is it
expanding to?
Can you please add -save-temps to the compile command above and send
me the resulting file-io.ii file? You don't need to run configure with
-save-temps in CXXFLAGS, just cd to the src subdirectory in your build
tree and cut and paste the g++ command above and add -save-temps to
it.
jwe