g++ -shared -pthread doesn't link -lpthread ?

Rex Dieter rdieter at math.unl.edu
Wed Dec 8 14:50:41 UTC 2010


I'm trying to find the best solution to:
https://bugzilla.redhat.com/show_bug.cgi?id=661115

Where a shlib is generated using
g++ -shared -pthread ...
but the result is a library with undefined symbols to pthread_create (and 
friends).

Do I really need to explicity link -lpthread , or is there a better 
solution?

-- Rex



More information about the devel mailing list