monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] C++11


From: Stephen Leake
Subject: Re: [Monotone-devel] C++11
Date: Sat, 17 May 2014 10:08:45 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt)

"LeJacq, Jean Pierre" <address@hidden> writes:

>> error: ‘fdopen’ was not declared in this scope *in = fdopen(infds[1], "w");
>> 
>
> Setting the language level to -std='c++11' enables strict ISO C++ library 
> support. fdopen() is not part of the C11 or C++11 standards. Instead it is a 
> POSIX function.

Ok.

>   -D'_POSIX_SOURCE=1'
>   -D'_POSIX_C_SOURCE=200809L'
>   -D'_XOPEN_SOURCE=700'
>   -D'_XOPEN_SOURCE_EXTENDED=1'
>
> GNU extensions can then be enabled using:
>
>   -D'_GNU_SOURCE=1'

Is there a separate include file for posix? That would be cleaner than
messing with these macros.

-- 
-- Stephe



reply via email to

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