Re: Pthreads: Prototypes missing if -std=c11

2017-07-13 Thread Brian Inglis
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,

Re: Pthreads: Prototypes missing if -std=c11

2017-07-13 Thread cyg Simple
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

Re: Pthreads: Prototypes missing if -std=c11

2017-07-13 Thread bz0815
> 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 >

Re: Pthreads: Prototypes missing if -std=c11

2017-07-12 Thread Yaakov Selkowitz
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

Pthreads: Prototypes missing if -std=c11

2017-07-12 Thread bz0815
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: