Re: POSIX thread question
- From: Mikko Rauhala <mjr@xxxxxx>
- Date: 29 Aug 2006 16:35:13 GMT
On 29 Aug 2006 08:17:52 -0700, Jack <junw2000@xxxxxxxxx> wrote:
I tried the following command, it works:
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?
There is really no difference. -pthread implies -lpthread
(on GNU/Linux, anyway), so the latter version is just redundant.
--
Mikko Rauhala - mjr@xxxxxx - <URL:http://www.iki.fi/mjr/>
Transhumanist - WTA member - <URL:http://www.transhumanism.org/>
Singularitarian - SIAI supporter - <URL:http://www.singinst.org/>
.
- 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
- Re: POSIX thread question
- From: Jack
- POSIX thread question
- Prev by Date: Re: POSIX thread question
- Next by Date: Re: accessing files, devices, in kernel modules
- Previous by thread: Re: POSIX thread question
- Next by thread: Re: POSIX thread question
- Index(es):
Relevant Pages
|