avatar
multithread programming# Unix - 噫吁兮,危乎高哉
d*j
1
Now I m multithreading a program.
First I try pthread , ihave included the header files and added compiler switches, but compiler always consider no implementation of the pthread methods, "implicit declaration" is reported.
So i turn to thread methods, this time everything ok. Do we need include sone library of pthread when we use it?What we shall do?
Thanks.
avatar
h*a
2
what compiler flag do u add? try gcc -pthread or -lpthread
what platform are u working?

【在 d***j 的大作中提到】
: Now I m multithreading a program.
: First I try pthread , ihave included the header files and added compiler switches, but compiler always consider no implementation of the pthread methods, "implicit declaration" is reported.
: So i turn to thread methods, this time everything ok. Do we need include sone library of pthread when we use it?What we shall do?
: Thanks.

avatar
d*j
3
i have done it.
Solaris X86 7.0
I set LD_LIBRARY_PATH to include all libs, then pthread works
Thanku

【在 h******a 的大作中提到】
: what compiler flag do u add? try gcc -pthread or -lpthread
: what platform are u working?

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。