This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: fileno not visible when -std=c++11 is used
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Arthur Schwarz <aschwarz1309 at att dot net>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Mon, 9 Jun 2014 09:47:48 +0100
- Subject: Re: fileno not visible when -std=c++11 is used
- Authentication-results: sourceware.org; auth=none
- References: <136F6BF0129A47DEB0E6C6F0B74E2700 at 2600kPC>
On 7 June 2014 15:51, Arthur Schwarz wrote:
>
> Win7 64-bit
> gcc 4.8.2 (cygwin)
>
> Ref:
> http://stackoverflow.com/questions/14172884/no-fileno-function-in-nuwen-net-
> mingw-distro
>
> The 'fileno' function is not visible when -std=c++11 is used but is visible
> when it is not.
What if you use -std=gnu++11 ?
The default language mode is -std=gnu++98, so by using -std=c++11 you
are changing two things: using the C++11 mode and disabling GNU
extensions.