From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 45551 invoked by alias); 12 Jul 2017 17:50:03 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 44033 invoked by uid 89); 12 Jul 2017 17:50:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=H*M:cygwin, bz0815@tirol.com, bz0815tirolcom, U*bz0815 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 12 Jul 2017 17:50:01 +0000 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3D290C056786 for ; Wed, 12 Jul 2017 17:50:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 3D290C056786 Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=cygwin.com Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=none smtp.mailfrom=yselkowitz@cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 3D290C056786 Received: from [10.10.122.219] (ovpn-122-219.rdu2.redhat.com [10.10.122.219]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EF9AA18212 for ; Wed, 12 Jul 2017 17:49:59 +0000 (UTC) Subject: Re: Pthreads: Prototypes missing if -std=c11 To: cygwin@cygwin.com References: From: Yaakov Selkowitz Message-ID: Date: Wed, 12 Jul 2017 17:50:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg00212.txt.bz2 On 2017-07-12 11:15, bz0815@tirol.com wrote: > gcc does not recognize some functions from pthread.h if option -std=c11 is used: Exactly, and the same happens with glibc. When you use -std=c*, that means you are declaring strict ISO C, and all extensions are disabled by default unless explicitly enabled (e.g. with -D_POSIX_C_SOURCE=200112L). If you are not compatible with ISO C, then you should be using -std=gnu* instead. -- Yaakov -- 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