undefined reference to pthread_create in c program on eclipse (Fedora) -


i have problem in building c thread program. program giving error "undefined reference pthread_creat". searched , found use gcc options "gcc -lpthread -o ...."

but not able set eclipse. tried make change in makefile every time got replaced default options. please me set these gcc options , write , how set gcc options in eclipse on fedora 10.

thanks,

lokesh

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

right cklick on project in project explorer -> properties -> c/c++ build -> settings -> linker -> libraries -> add -> pthread -> ok -> rebuild


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -