This is the mail archive of the cygwin mailing list for the Cygwin 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: Updated: gcc-7.3.0-2 (x86/x86_64)


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


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