[protobuf] compilation error for "undefined reference to `google::protobuf::internal::AtomicOps_Internalx86CPUFeatures'"

2015-09-11 Thread kushal umarkar
I have been using Ubuntu 14.04 Lts. 64Bit in Virual Machine on windows.
I have some of proto files created for my project, I have been compiling 
complete c++ project using g++ compiler along with proto files but I am 
facing a compilation error below.

/home/auto/Desktop/perforce/depot/project/Research/box/build64/Debug/lib/libprotobuf.a(once.o):
 
In function `google::protobuf::internal::Acquire_CompareAndSwap(long 
volatile*, long, long)':
/home/auto/Desktop/perforce/depot/project/Research/box/src/Components/ExternalLibraries/protobuf/2.6.0/stubs/atomicops_internals_x86_gcc.h:273:
 
undefined reference to 
`google::protobuf::internal::AtomicOps_Internalx86CPUFeatures'
collect2: error: ld returned 1 exit status
...failed _AWAppBuild 
/home/auto/Desktop/perforce/depot/project/Research/box/build64/Debug/runTime/bin/tconduit
 
...
...failed updating 1 target(s)...

May I know what is wrong happening in compilation. However I tried 
adding -DGOOGLE_PROTOBUF_ARCH_X64 -DHAVE_THREAD compiler flags as well but 
no change.

Thanks for help in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


[protobuf] Json support in protobuf 3.0.0-beta-1

2015-09-11 Thread Siddharth Chhabra
Was this added ?
I cant find the JsonFormat class in the api referenc
The JsonFormat class was mentioned in the thread "Will protobuf support 
JSON?"

The api is here 
: https://developers.google.com/protocol-buffers/docs/reference/java/index
We are thinking of upgrading to protobuf 3 and want to make sure json 
support is there since otherwise we dont have a need to upgrade.

Please let us know
Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


Re: [protobuf] Json support in protobuf 3.0.0-beta-1

2015-09-11 Thread 'Feng Xiao' via Protocol Buffers
On Fri, Sep 11, 2015 at 5:23 PM, Siddharth Chhabra <
siddharth.chha...@gmail.com> wrote:

> Was this added ?
> I cant find the JsonFormat class in the api referenc
> The JsonFormat class was mentioned in the thread "Will protobuf support
> JSON?"
>
> The api is here :
> https://developers.google.com/protocol-buffers/docs/reference/java/index
> We are thinking of upgrading to protobuf 3 and want to make sure json
> support is there since otherwise we dont have a need to upgrade.
>
Sorry, the Java doc hasn't been updated yet. You can find the JsonFormat
class here:
https://github.com/google/protobuf/blob/master/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java



>
> Please let us know
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> Visit this group at http://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


Re: [protobuf] compilation error for "undefined reference to `google::protobuf::internal::AtomicOps_Internalx86CPUFeatures'"

2015-09-11 Thread 'Feng Xiao' via Protocol Buffers
On Fri, Sep 11, 2015 at 4:44 AM, kushal umarkar <
kushal.umarkar031...@gmail.com> wrote:

> I have been using Ubuntu 14.04 Lts. 64Bit in Virual Machine on windows.
> I have some of proto files created for my project, I have been compiling
> complete c++ project using g++ compiler along with proto files but I am
> facing a compilation error below.
>
> /home/auto/Desktop/perforce/depot/project/Research/box/build64/Debug/lib/libprotobuf.a(once.o):
> In function `google::protobuf::internal::Acquire_CompareAndSwap(long
> volatile*, long, long)':
> /home/auto/Desktop/perforce/depot/project/Research/box/src/Components/ExternalLibraries/protobuf/2.6.0/stubs/atomicops_internals_x86_gcc.h:273:
> undefined reference to
> `google::protobuf::internal::AtomicOps_Internalx86CPUFeatures'
> collect2: error: ld returned 1 exit status
> ...failed _AWAppBuild
> /home/auto/Desktop/perforce/depot/project/Research/box/build64/Debug/runTime/bin/tconduit
> ...
> ...failed updating 1 target(s)...
>
> May I know what is wrong happening in compilation. However I tried
> adding -DGOOGLE_PROTOBUF_ARCH_X64 -DHAVE_THREAD compiler flags as well but
> no change.
>
How did you build the library? It seems you missed
atomicops_internals_x86_gcc.cc in your build. Judging from the file path of
your build, it doesn't seem like using our provided build files.


>
> Thanks for help in advance.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> Visit this group at http://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.