Have you some news about the compilation of a simple C++ project using grpc 
on Windows?
Following the instruction I am able to compile the library itself but I am 
not able to compile the greeter_client/greeter_server examples.

I am able to compile the helloworld.proto, the generated helloworld.pb.cc 
and helloworld.grpc.pb.cc,  greeter_server.cc and greeter_client.cc but as 
soon as I try to link them to obtain the client and the server I find a lot 
of unresolved.

My linker command lines are:

link greeter_server.obj helloworld.pb.obj helloworld.grpc.pb.obj 
libprotobufd.lib libprotocd.lib grpc.lib gpr.lib grpc++.lib ws2_32.lib 
-LIBPATH:C:\grpc\.build\Debug 
-LIBPATH:C:\grpc\.build\third_party\protobuf\debug 

link greeter_client.obj helloworld.pb.obj helloworld.grpc.pb.obj 
libprotobufd.lib libprotocd.lib grpc.lib gpr.lib grpc++.lib ws2_32.lib 
-LIBPATH:C:\grpc\.build\Debug 
-LIBPATH:C:\grpc\.build\third_party\protobuf\debug 

What am I missing?

Il giorno mercoledì 1 novembre 2017 13:29:50 UTC+1, Jan Tattermusch ha 
scritto:
>
> cmake is the official way to build gRPC on Windows - so we do have an 
> official CMakeLists.txt file in our repository and we also have 
> instructions how to build:
>
> https://github.com/grpc/grpc/blob/master/INSTALL.md#building-using-cmake-recommended
>
> We do have tests running continously for cmake build, so you really should 
> be able to build using that approach without issues.
> I have some in-progress work to demonstrate how a simple C++ project that 
> uses gRPC can be built on Windows - but it's not quite ready yet (we have 
> such example for Helloworld C++ on linux here 
> https://github.com/grpc/grpc/blob/master/examples/cpp/helloworld/CMakeLists.txt
> )
>
> On Tuesday, October 31, 2017 at 7:21:39 PM UTC+1, Selcuk Bozdag wrote:
>>
>> Hi,
>>
>> After getting grpc built on my Windows using VS2015, I created a proto 
>> file and generated a service code. However I could not manage to compile 
>> it. It is a bit because I'm not so familiar with MS tools. So I decided to 
>> get Cmake on stage and create a building script which looks much more 
>> reasonable to me. 
>>
>> Has anyone in the group a working example of CMakeList file that 
>> successfully builds a gRPC c++ project on Windows? 
>>
>> I would greatly appreciate for any help
>>
>> Thanks
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" 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/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/6ab2b6c5-b875-40dc-b980-2b69c7e95a5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to