delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/07/13/11:37:09

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:date:from:to:subject:message-id:mime-version
:content-type:content-id:content-transfer-encoding; q=dns; s=
default; b=jizPHecXZuQYziNOpF9Bi6Ylyl9JX0ktMQU2EhpjXPFk6CA+h29xE
mmwgpLiEgQchGRF79bPZ9o4tqeLegheWwS/GWXfGCdEUTMPkoElPh0+nAUL67Kv1
dfVVLWo62vjb/mqh58JHZOphoCyRXL3t4RgOnZtpLxtS48B+MabXuc=
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:date:from:to:subject:message-id:mime-version
:content-type:content-id:content-transfer-encoding; s=default;
bh=lUl6ydoCeX6Qe9xYWcijobc9rLg=; b=jG9DgejaNwEwyCOlSZfzlSOoutCA
pJ/j3skluMCewYGQ3TZ5s0Rz+hd5h/VecZn4yplNA/YvvmOXKHRP1zFBPLoF7/HP
L38lCmrDLg+/NafA0csDUBlVdPs2/uusQTjv1sfmUdKjKUUCmWprpEtVK/cxaTDc
LAR0Yaww5eFHJ7s=
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.8 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=sk:bz0815, bz0815tirolcom, Prototypes, pthreads
X-HELO: smtpout.aon.at
X-A1Mail-Track-Id: 1499960193:24893:smarthub82:213.33.87.6:1
Date: Thu, 13 Jul 2017 17:36:33 +0200 (CEST)
From: bz0815 AT tirol DOT com
To: cygwin AT cygwin DOT com
X-Auth-ID: aon.965001387.neff
Subject: =?utf-8?Q?Re=3A_Pthreads=3A_Prototypes_missing_if_-std=3Dc11?=
Message-ID: <mtranet.20170713173633.1507674902@a1.net>
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id v6DFb8Bg002891

> 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
>
> --

Many thanks for the info, Yaakov. Accoring to the manual -std determines the language standard and c11 means ISO C11, the 2011 revision of the ISO C standard. Howevery, I find no restriction on POSIX in ISO/IEC 9899:2011. So why should -std=c11 have an influence on Pthreads? Am I missing something?


--
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