Comment #37 on issue 188 by protobuf fails to link after compiling with LDFLAGS="-Wl,--as-needed" because of missing -lpthread

i tried most recent official source release protobuf-c-0.15 on cygwin.
it failed with the the same symptom.

then i applied the below work around (just killing the exit statements from configure), successfully configured and compiled the package - now its operable for me at least up to the command line help (no deeper testing done so far).

i want to share this result as it might help others in going ahead in a timely fashion with their true targets. i dont want to imply it will work all the time but it should work often on a normally working system despite those error popped up.


what else to say? g++ used in the linker stage seems to benignly ignore unknown options. "g++ (GCC) 4.3.4 20090804 (release) 1"

libtool: link: g++ -g -O2 -pthread -o .libs/cxx-generate-packed-data.exe cxx-generate-packed-data.o test-full.pb.o /usr/local/lib/libprotobuf.a -lz /usr/lib/gcc/i686-pc-cygwin/4.3.4/libstdc++.dll.a -pthread -L/usr/lib/gcc/i686-pc-cygwin/4.3.4
g++: unrecognized option '-pthread'
g++: unrecognized option '-pthread'

        configure.diff  330 bytes

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