[ACCEPTED]-Undefined reference error _dl_stack_flags with gcc and pthreads-pthreads

Accepted answer
Score: 10

This question was also asked on Ask Ubuntu.

In short, the 5 problem appears to be due to trying to statically 4 link libpthread against a dynamic libc. Dynamically linking 3 libpthread should make the error go away, and I suspect 2 that the error would also go away if both 1 libpthread and libc were statically linked.

More Related questions