------- Comment #2 from pinskia at gcc dot gnu dot org 2006-10-19 16:51 ------- -lpthread I think that is your problem, you should be using -pthread instead.
Can you try using -pthread instead of -lpthread? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29517