im compiling a basic sorting algorithm that utilizies POSIX threads (pthreads) ....
everything was compiling fine, until i put the thread implementation in ....
all of a sudden, it gives me this:
[code]-bash-2.05b$ gcc project4a.c -lpthreads
project4a.c: In function `main':
project4a.c:32: subscripted value is neither array nor pointer
project4a.c:33: subscripted value is neither array nor pointer
in regards to these lines:
[code]32: n[x] = atoi(readnum);
33: printf("%i ", n[x]);
it is declared correctly, like this:
[code]const int MAX = 1024;
void numsort (void arg);
what error is that???? anyone?