Updated: gcc-7.3.0-2 (x86/x86_64)
Ken Brown
kbrown@cornell.edu
Thu May 31 02:22:00 GMT 2018
On 5/30/2018 7:58 AM, JonY wrote:
> On 05/29/2018 05:32 PM, Alberto Escrig Vidal wrote:
>> This program fails to compile (it also failed with g++-6).
>>
>> #include <shared_mutex>
>>
>> int main() {}
>>
>
> I'm guessing Cygwin does not support the functionality declared in the
> headers yet.
I think the explanation is simpler. The problem is that the
shared_mutex header uses some pthread_rwlock_* functions (if __cplusplus
>= 201402L) but the declaration of these in pthread.h is guarded by
#if __XSI_VISIBLE >= 500 || __POSIX_VISIBLE >= 200112
I've submitted a patch to fix this:
https://cygwin.com/ml/cygwin-patches/2018-q2/msg00018.html
Ken
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list