[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #34543] gnulib fflush used on MinGW
From: |
Joaquim Luis |
Subject: |
[Octave-bug-tracker] [bug #34543] gnulib fflush used on MinGW |
Date: |
Fri, 14 Oct 2011 01:57:15 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.904.0 Safari/535.7 |
URL:
<http://savannah.gnu.org/bugs/?34543>
Summary: gnulib fflush used on MinGW
Project: GNU Octave
Submitted by: jluis
Submitted on: Fri 14 Oct 2011 01:57:14 GMT
Category: Configuration and Build System
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Build Failure
Status: None
Assigned to: None
Originator Name: Joaquim Luis
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Microsoft Windows
_______________________________________________________
Details:
Hi,
While trying to build the dev version on MinGW I get several errors like
lo-utils.cc: In function 'std::string octave_fgets(FILE*, bool&)':
> lo-utils.cc:127:11: error: 'fgets' is not a member of 'gnulib'
> lo-utils.cc:127:11: note: suggested alternatives:
> c:\mingw\bin\../lib/gcc/mingw32/4.6.1/../../../../include/stdio.h:354:39:
note: 'fgets'
and the same for fflush and others. I solved a couple of these with #ifdefs
but this should have been a configure's job.
If mingw provides fgets, fflush, ... it should not try to use those in
gnulib.
#if !defined(__MINGW32__) && !defined(__MINGW64__)
gnulib::fflush (stderr);
#else
fflush (stderr);
#endif
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?34543>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #34543] gnulib fflush used on MinGW,
Joaquim Luis <=