Re: C++11

Stephen Leake <[email protected]>
Newsgroups gmane.comp.version-control.monotone.devel
Message-ID <[email protected]>
"LeJacq, Jean Pierre" <[email protected]> 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

_______________________________________________
Monotone-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/monotone-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.