Question: I have a problem in building a c thread program. Program is giving error like 
"undefined reference to pthread\_creat". 
I searched and found to use gcc options like 
"gcc -lpthread -o ...."

But I not able to set it for eclipse. I tried to make change in makefile but every time it got replaced with default options. Please help me to set these gcc options and write about where and how to set gcc options in eclipse on fedora 10. 

Thanks,

Lokesh

Answer: 
to add pthread library to your project flow these steps (in eclipse): 

right cklick on the project in the project explorer -> properties -> c/c++ build -> Settings -> linker -> libraries -> add -> pthread -> ok -> rebuild
Check [this](http://blog.asteriosk.gr/2009/02/15/adding-pthread-to-eclipse-for-using-posix-threads/) 'tutorial' on about how to setup eclipse for developing posix threads.

Hope it helps.