> 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
> u
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(&barrier, NULL, THREADS);
}
gcc -std=c11 -o test test.c
test.c: In function ‘main’:
test.c:
2 matches
Mail list logo