I Tried to use pthread_create in redhat Linux AS4, Both in Eclipse CDT and KDevelop.
KDevelop:
When you build a project by KDevelop, you'd better add a '-pthread' to the link option if your project includes Without that option, KDevelop would report an link error:. '/ Root / kde / oop /src/oop.c:23: undefined reason to `pthread_create '
After Rebuild, The Program Works Well.
Eclipse CDT:
When you use pthread_create in your project, it will compile and link ok But when you execute the program, the thread will receive a signal SIGSEGV that said:.. Execution is suspended because of error Can not find bounds of current function
I Tried to Add '-PTHREAD' TO The Link Option of The Eclipse CDT, But It's Helpless. I don't know how to Correct this.