I was trying to implement threads in my C code and this is the first time I did this I used

/*mod edit: Dead links removed. Please post your own code, not links, especially ones which lead nowhere ~ kenfitlike*/

as reference

but when I compile I get the error

:/home/shahan/engine_driver.c:43: undefined reference to `pthread_detach'
collect2: ld returned 1 exit status
make: *** [engine] Error 1

I will include the code where I create the thread

can some one help me on this