I'm having problems with compiling some code that's threaded. I'm using pthread_setaffinity_np() to set the processor affinity for threads. Unfortunately at link time its having problems finding the reference to the function.
My makefile:
Code:
all:
gcc -o test test.c -lpthread -D__USE_GNU
The function call in question:
Code:
pthread_setaffinity_np(tid[i], (void *)1);