Re: POSIX thread question
Michael Rasmussen wrote:
On Mon, 28 Aug 2006 22:41:28 +0000, Mikko Rauhala wrote:
You need the -pthread switch to compile threaded code with gcc.
Shouldn't be -lpthread?
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.
DS
.
Relevant Pages
- Reversing order of quicksort
... > any particular reason why you cannot or don't want to use the `qsort' ... > function in the standard C library? ... I'm using gcc on mingw and assumed it was so minimal it wouldn't ... (comp.lang.c) - Re: Requesting advice how to clean up C code for validating string represents integer
... GNU C is the C-like language accepted by gcc. ... violate the C standard. ... that you get the GNU C version of each library rather than the ANSI ... (comp.lang.c) - Re: kids and their furniture?
... I would always honor and respect any house rules I was ... standards that differed significantly from the range of behaviors ... I think it's pretty close to the legal 'reasonable person' standard. ... too much work to reason one's way through every single ... (misc.kids) - Re: I dont get how the computer arrives at 2^31
... > Standard isn't always as careful with the language it uses. ... something that will make its functionality "equivalent" to fprintf(). ... function that created the va_list value passed to vfprintf(). ... The reason is that, unless ... (comp.std.c) - Re: How do you imagine future Common Lisp standard ?
... Scheme doesn't focus on good macro ... Goodness and Badness must be evaluated in a particular design-space ... It's fortunate that this can be done without change to the standard, ... There's no reason to define the old language away, ... (comp.lang.lisp) |
|