delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/07/12/13:50:18

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: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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: <mtranet DOT 20170712181557 DOT 1862059698 AT a1 DOT net>
From: Yaakov Selkowitz <yselkowitz AT cygwin DOT com>
Message-ID: <c24d7b80-6dc0-1d1d-9b19-bcb6847f9747@cygwin.com>
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: <mtranet.20170712181557.1862059698@a1.net>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019