In function 
`grpc::TimePoint<std::chrono::time_point<std::chrono::_V2::system_clock, 
std::chrono::duration<long, std::ratio<1l, 1000000000l> > > 
>::TimePoint(std::chrono::time_point<std::chrono::_V2::system_clock, 
std::chrono::duration<long, std::ratio<1l, 1000000000l> > > const&)':
prototype_a.cpp:(.text._ZN4grpc9TimePointINSt6chrono10time_pointINS1_3_V212system_clockENS1_8durationIlSt5ratioILl1ELl1000000000EEEEEEEC2ERKS9_[_ZN4grpc9TimePointINSt6chrono10time_pointINS1_3_V212system_clockENS1_8durationIlSt5ratioILl1ELl1000000000EEEEEEEC5ERKS9_]+0x1f):
 
undefined reference to `grpc::Timepoint2Timespec(std::chrono::time_point<std
::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 
1000000000l> > > const&, gpr_timespec*)'
collect2: error: ld returned 1 exit status

I am getting the above linker error when adding the following lines to my 
'procom' library.

std::chrono::system_clock::time_point 
deadline(std::chrono::system_clock::now() + std::chrono::seconds(10));
_channel->WaitForConnected(deadline);

I am linking 'procom' with the following CMake commands:

add_library(procom SHARED src/procom.cpp)
target_link_libraries(procom pthread ${ZLIB_LIBRARIES} libgpr.a libgrpc++
_unsecure.a libgrpc_unsecure.a libprotobuf.a)

Which I am using later on in a 'prototype_a' application, which is being 
build with the following CMake commands:

add_executable(proto_a src/prototype/prototype_a.cpp)
target_link_libraries(proto_a procom)

I would appreciate it very much if someone has an idea of what I am doing 
wrong? :)
Thank you in advance!

-- 
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 grpc-io+unsubscr...@googlegroups.com.
To post to this group, send email to grpc-io@googlegroups.com.
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/a4e8a14f-b06b-4a3b-80d0-73648bb0e954%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to