Re: POSIX thread question
- From: "Jack" <junw2000@xxxxxxxxx>
- Date: 29 Aug 2006 08:17:52 -0700
David Schwartz wrote:
Michael Rasmussen wrote:
I tried the following command, it works:
Only if '-pthread' doesn't work for some reason. The '-pthread' option
is standard. The '-lpthread' option happens to be correct for some
current Linux platforms.
gcc -pthread -o threadapp threadapp.c
My book suggests the following:
gcc -pthread threadapp.c -o threadapp -lpthread
What is the different? Which on is better?
Thanks.
Jack
.
- Follow-Ups:
- Re: POSIX thread question
- From: David Schwartz
- Re: POSIX thread question
- From: Mikko Rauhala
- Re: POSIX thread question
- References:
- POSIX thread question
- From: Jack
- Re: POSIX thread question
- From: Mikko Rauhala
- Re: POSIX thread question
- From: Michael Rasmussen
- Re: POSIX thread question
- From: David Schwartz
- POSIX thread question
- Prev by Date: Max Thread per process.
- Next by Date: Re: POSIX thread question
- Previous by thread: Re: POSIX thread question
- Next by thread: Re: POSIX thread question
- Index(es):
Relevant Pages
|