Re: gcc 8.2.0: missing _fileno() for c++11

Anton Shepelev <[email protected]> Mon, 20 Jan 2020 23:22:52 +0300
Newsgroups gmane.comp.gnu.mingw.user
Message-ID <[email protected]>
Eli Zaretskii:

> Doesn't -std=c++11 request strict ANSI C++?  _fileno is
> non-ANSI, and thus isn't visible in a strict-ANSI
> compilation.  I suggest to try the option -std=gnu++11
> instead.

But you are right -- why should one expect a non-standard
function or macro in a standard header if MinGW is not
obliged to implement POSIX?  On the other hand, this worked
with GCC 4.*...

Since the project I am trying to build and contribute to is
configured not to use the GNU extensions, I have to find
another way of acessing fileno/_fileno.  May I link it in
manually from the MinGW library in which it *is*
implemented?  Or may I, perhaps, ask to to implement fileno
as a favour?

_______________________________________________
MinGW-Users mailing list
[email protected]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.osdn.me/mailman/listinfo/mingw-users
Also: mailto:[email protected]?subject=unsubscribe