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.

Reply via email to