This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fileno not visible when -std=c++11 is used


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]