Hi,
i compiled grpc according to the documentation by using MSYS2. I can compile the helloworld example without problems. No i wrote the following example :
#include <iostream>
#include "../protobuff/demo.pb.h"
#include "MathToolsImpl.h"
#include "grpc++/grpc++.h"
using namespace std;
int main()
{
std::string server_address("127.0.0.1:50051");
MathToolsImpl impl;
grpc::ServerBuilder builder;
builder.AddListeningPort(server_address,grpc::InsecureServerCredentials());
builder.RegisterService(&impl);
unique_ptr<grpc::Server> server(builder.BuildAndStart());
std::cout << "Server started and listening";
server->Wait();
}
When i comment out the line for AddListeningPort the program is linking fine. Any Idea what i am doing wrong ?