Linda Walsh
This is a dup of a post to the general discussion list (OS@OS.O), but though someone here might be better informed as to what's going into 11.0 ...
In 10.3 and most linux builds I've run into so far, 'pthreads' is usually in a separate pthreads library. Has this changed in 11.0? Would they have been moved into some library included by default during a build & link (like glibc)?
There's no change in this area.
Seems like that would be an odd change to make since outside tarballs that use pthreads would likely have a -lpthreads in the final link stage and if OS11 moves them, all those make files would require a different link line for OS11 (i.e. -- one that doesn't try to include what would be a non-existent pthreads library).
The reason I'm asking is I'm looking at a make designed to run on OS11, and I'm getting link errors for the various pthread functions -- all of the functions seem to be missing when the final program is being linked (and it doesn't have an explicit -lpthreads on the link line).
The missing -lpthreads is the problem, you really need it.
Thus my wondering is it the case that pthreads are being moved into one of the standardly linked-with libraries (like glibc -- not requiring explicit naming on the command line), or does linking against against libpthreads happen automatically on the 'gcc' of the future (the one to be in OS11.0)?
I'm confused - you always had to add -lpthreads if you use the pthreads library, nothing has changed, Andreas -- Andreas Jaeger, Director Platform / openSUSE, aj@suse.de SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126