In function 
std::chrono::duration<long, std::ratio<1l, 1000000000l> > > 
std::chrono::duration<long, std::ratio<1l, 1000000000l> > > const&)':
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.

deadline(std::chrono::system_clock::now() + std::chrono::seconds(10));

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 
"" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

Reply via email to