Yes, linking against pthreads is required.  Technically it always was, but
on certain platforms (e.g. Linux), it just happened that the set of pthread
functions used by libprotobuf were all implemented in libc itself, so if you
forgot to use -lpthead it worked anyway.
I suppose that should be in the readme.

On Thu, May 14, 2009 at 10:25 AM, daveb <> wrote:

> Just got a complaint from a user saying that they needed to add -
> lpthread to link against protoc.
> I hadn't heard of the pthread change by the way -- was that expected?
> It might be nice if there was a pkg-config file for protoc so that -
> lpthread can be sucked up exactly when needed.
> >

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to