Re: [protobuf] Compiling protobuf with GOOGLE_PROTOBUF_NO_THREAD_SAFETY macro

2017-07-07 Thread Brad Larson
On Friday, July 7, 2017 at 3:35:38 PM UTC-5, Feng Xiao wrote: > > > > On Fri, Jul 7, 2017 at 1:28 PM, Brad Larson > wrote: > >> >> >> On Tuesday, July 19, 2016 at 10:15:29 AM UTC-5, Igor Gatis wrote: >>> >>> I'm using -DGOOGLE_PROTOBUF_NO_THREAD_SAFETY but I'm hitting the >>> following errors:

Re: [protobuf] Compiling protobuf with GOOGLE_PROTOBUF_NO_THREAD_SAFETY macro

2017-07-07 Thread 'Feng Xiao' via Protocol Buffers
On Fri, Jul 7, 2017 at 1:28 PM, Brad Larson wrote: > > > On Tuesday, July 19, 2016 at 10:15:29 AM UTC-5, Igor Gatis wrote: >> >> I'm using -DGOOGLE_PROTOBUF_NO_THREAD_SAFETY but I'm hitting the >> following errors: >> >> "src/google/protobuf/stubs/atomic_sequence_num.h", line 43: Error: #20: >>

Re: [protobuf] Compiling protobuf with GOOGLE_PROTOBUF_NO_THREAD_SAFETY macro

2017-07-07 Thread Brad Larson
On Tuesday, July 19, 2016 at 10:15:29 AM UTC-5, Igor Gatis wrote: > > I'm using -DGOOGLE_PROTOBUF_NO_THREAD_SAFETY but I'm hitting the following > errors: > > "src/google/protobuf/stubs/atomic_sequence_num.h", line 43: Error: #20: > identifier "AtomicWord" is undefined > AtomicWord GetNext

Re: [protobuf] Compiling protobuf with GOOGLE_PROTOBUF_NO_THREAD_SAFETY macro

2016-07-19 Thread Igor Gatis
I'm using -DGOOGLE_PROTOBUF_NO_THREAD_SAFETY but I'm hitting the following errors: "src/google/protobuf/stubs/atomic_sequence_num.h", line 43: Error: #20: identifier "AtomicWord" is undefined AtomicWord GetNext() { ^ "src/google/protobuf/stubs/atomic_sequence_num.h", line 47: Error: #2

Re: [protobuf] Compiling protobuf with GOOGLE_PROTOBUF_NO_THREAD_SAFETY macro

2013-10-21 Thread Safi Ali
Hi, Thanks a lot Feng for your quick answer. Well at the moment, we are only planning to use it in a single threaded application where we write/read messages sequentially, instead of in parallel. So I guess we are safe for now. Regards, Safi On Monday, October 21, 2013 7:32:19 PM UTC+3, Feng

Re: [protobuf] Compiling protobuf with GOOGLE_PROTOBUF_NO_THREAD_SAFETY macro

2013-10-21 Thread Feng Xiao
On Mon, Oct 21, 2013 at 1:05 AM, Safi Ali wrote: > Hi, > > I have been trying to compile google protocol buffers 2.5.0 on solaris > (sparc) environment. It seems I have to use > the GOOGLE_PROTOBUF_NO_THREAD_SAFETY macro in order to make it compile > properly. So I follow these steps to compile p

[protobuf] Compiling protobuf with GOOGLE_PROTOBUF_NO_THREAD_SAFETY macro

2013-10-21 Thread Safi Ali
Hi, I have been trying to compile google protocol buffers 2.5.0 on solaris (sparc) environment. It seems I have to use the GOOGLE_PROTOBUF_NO_THREAD_SAFETY macro in order to make it compile properly. So I follow these steps to compile protobuf:- ./configure CPPFLAGS="-DGOOGLE_PROTOBUF_NO_THREA