Feng, thank you for your input.

I have tried to use cmake to build protocol buffers but I get the same
error when I use cmake.

If the syntax of the output is correct I believe the issue is the mixing of
a forward slash "\" after the "C:" and then back slashes on the rest of the
path, maybe.  It is the only thing I can think of.

I'll try removing the second libprotobuf.dll.a and issue the command on the
command line to see if that works.  Then I would have to fix either the
makefile or the commands to the libtool.

Doug


On Mon, Jun 27, 2016 at 2:58 PM, Feng Xiao <[email protected]> wrote:

>
>
> On Mon, Jun 27, 2016 at 11:00 AM, Doug Lewis <[email protected]>
> wrote:
>
>> I'm trying to build the proto3 C++ source using gcc.  I've tried both
>> command line and using Eclipse.  I get the same error either way I attempt
>> to build:
>>
>> /bin/sh ../libtool  --tag=CXX   --mode=link g++  -DHAVE_PTHREAD=1  -Wall
>> -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -g -DNDEBUG   -o
>> protoc.exe google/protobuf/compiler/main.o  libprotobuf.la libprotoc.la
>> libtool: link: g++ -DHAVE_PTHREAD=1 -Wall -Wwrite-strings
>> -Woverloaded-virtual -Wno-sign-compare -O2 -g -DNDEBUG -o .libs/protoc.exe
>> google/protobuf/compiler/main.o  ./.libs/libprotobuf.dll.a
>> ./.libs/libprotoc.dll.a
>> C:\cygwin/home/DLewis/RTS3-PB-Clean/protobuf-3.0.0-beta-3/src/.libs/libprotobuf.dll.a
>> -L/usr/local/lib
>>
> This is strange. libprotobuf.dll.a appears twice in the command. Could you
> try if removing the second one helps? (removing
> C:\cygwin/home/.../librotobuf.dll.a)
>
>
>> g++.exe:
>> C:cygwin/home/DLewis/RTS3-PB-Clean/protobuf-3.0.0-beta-3/src/.libs/libprotobuf.dll.a:
>> No such file or directory
>>
>
>> I have checked and the file libprotobuff.dll.a is in the directory/folder.
>>
> Could you try cmake (an alternative approach to build protobuf):
> $ cd protobuf/cmake && mkdir build && cd build
> $ cmake ../cmake && make
> ?
>
>
>>
>> Thanks,
>> Doug
>>
>> --
>> 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 [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at https://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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to