Linking error : /usr/bin/ld: cannot find -lpthread

I didn’t use -Bstatic or -static for linking.
And also as I mentioned, gcc compiling is working well.
Also pthread library is installed proper location.
I think it just happen because there are no -lpthread option
in pgcc case… how do i solve this?

Can you please post the verbose output from the link? (i.e. add the “-v” flag to you link and post the full output).

Also, which OS are you using?

Thanks,
Mat