由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - multithread programming
相关主题
multithread questionA tough compiler problem
pthread_kill SIGINT SIG_DFL multithread[转载] molscript and grasp
openMP or boost::thread (pthread) for multithreading ?where is libstdc++
Does Linux support thread?GCC的编译?
Reference for Multithread Programming under Unix?漆血柜求
问题:可以设定SUN T5120 SERVER 的 VIRTUAL PROCESSOR 的数目(转载)[转载] ask a question.
Questions about MakefileGCC 一问
[转载] 请教三个关于emacs和perl的问题Help: convert // to /* */ in C code?
相关话题的讨论汇总
话题: pthread话题: compiler话题: do
进入Unix版参与讨论
1 (共1页)
d***j
发帖数: 25
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.
h******a
发帖数: 198
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.

d***j
发帖数: 25
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?

1 (共1页)
进入Unix版参与讨论
相关主题
Help: convert // to /* */ in C code?Reference for Multithread Programming under Unix?
about compiling new glibc/gcc in fc14 (转载)问题:可以设定SUN T5120 SERVER 的 VIRTUAL PROCESSOR 的数目(转载)
help needed-install gcc/g++ 4.7 on ubuntu 14.04Questions about Makefile
what is the difference between pthread and thr_ ?[转载] 请教三个关于emacs和perl的问题
multithread questionA tough compiler problem
pthread_kill SIGINT SIG_DFL multithread[转载] molscript and grasp
openMP or boost::thread (pthread) for multithreading ?where is libstdc++
Does Linux support thread?GCC的编译?
相关话题的讨论汇总
话题: pthread话题: compiler话题: do