On 2017-07-13 09:36, bz0...@tirol.com wrote:
>> On 2017-07-12 11:15, bz0...@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,
On 7/13/2017 11:36 AM, bz0...@tirol.com wrote:
>> On 2017-07-12 11:15, bz0...@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
> On 2017-07-12 11:15, bz0...@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
>
On 2017-07-12 11:15, bz0...@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
Hello,
gcc does not recognize some functions from pthread.h if option -std=c11 is used:
#include
#define THREADS 5
int main (int argc, char *argv[])
{
pthread_barrier_t barrier;
pthread_barrier_init(, NULL, THREADS);
}
gcc -std=c11 -o test test.c
test.c: In function ‘main’:
test.c:8:3:
5 matches
Mail list logo