octave-maintainers
[Top][All Lists]
Advanced

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

Re: Compile error of src/file-io.cc on octave-3.3.52+ by MinGW (GCC-4.5.


From: Tatsuro MATSUOKA
Subject: Re: Compile error of src/file-io.cc on octave-3.3.52+ by MinGW (GCC-4.5.0)
Date: Wed, 6 Oct 2010 16:55:34 +0900 (JST)

Hello

Thank you for the changeset.

The change gives
In file included from ../../../hg/octave-work/src/file-io.cc:77:0:
../../../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

I also the change file-io.cc:497
from
                  int fd = ::fileno (fptr);
to
                  int fd = fileno (fptr);
and compile went well.
I do not  know the above change affects other platforms.

Regards

Tatsuro
--- "John W. Eaton"  wrote:

> On  3-Oct-2010, Tatsuro MATSUOKA wrote:
> 
> | I have carried out grep at /mingw/include and found
> | 
> | stdio.h(528): #define _fileno(__F) ((__F)->_file)
> | stdio.h(530): #define fileno(__F) ((__F)->_file)
> 
> Does the following changeset fix the problem for you?
> 
>   http://hg.savannah.gnu.org/hgweb/octave/rev/dc4f8dfe5325
> 
> jwe
> 
> 


--------------------------------------
Learn more about breast cancer - Pink Ribbon Campaign 2010
http://yj.pn/JAy9L7


reply via email to

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