X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=p3YLV076RwDdZMIc SXss6khQFhM6EQWiwwrz8xylnWSSAkkc8HTmdWI1dCpo1Go7TkqqzgqxcV+midZE QsIe3LflVjbRSngQHwCSfFORTYIreZ+w0EmVBiYuWOlKF4FwZRJkDzzT8uFhjPGs uTC2NT9zUsqyChEacWV8/mi1o+s= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=SO970B3eLQOXNV6KfpVkHS TbnW4=; b=Dpyl9bklJx5tBo4Pcf52KY3ZjDE+Iu401204V8/Fy3i0fO7+12Lrlc 0r0Dus62zSnqiZaOtlKVY1MJPesjDNiqk/LYys8aZmIpO4F7Rn1D06FZJVYo1LHP iZ2aVDl8YpGWYe8klTQ+rlnHDwOw96QKxN+iw2SN9Nj9e+czitnh8= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 AT tirol DOT com, bz0815tirolcom, U*bz0815 X-HELO: mx1.redhat.com 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 AT cygwin DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 3D290C056786 Subject: Re: Pthreads: Prototypes missing if -std=c11 To: cygwin AT cygwin DOT com References: From: Yaakov Selkowitz Message-ID: Date: Wed, 12 Jul 2017 12:49:58 -0500 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 On 2017-07-12 11:15, bz0815 AT tirol DOT 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