i don't understand what's happening i have already used this function many times and this is the first time this happened, i really need some help.
thx
Are you running on the same physical machine where it was compiled?
You would get that error if for example you compiled without -lpthread. My thought is that it really did not (re)compile correctly. make will not recompile something if it thinks the executable is "current"
Please post the output of of
Sorry i didnt post this earlier, but i know why i had that error, it wasnt any compiler error, it was beacuse the way i had that i was creating that thread over and over again in an infinit loop. a litle error in my code but al fixed now. thx anyway.
Minor correction. The program wouldn't compile, and the linker would issue an error like:
undefined reference to `pthread_create'
Here the problem occurs at runtime. Your thought seems correct.
You may need indeed to fix this additional error. However, it is rather unlikely to have something in common with the problem you have initially reported. Jim's likely right; a clean recompile may have resolved your "undefined symbol" problem.
I had compiled with -lpthread, if i didn't the compiler would give me an error.
the problem was what i had said in the previous response.
thx for the help but is now fixed:D