Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyscallWrapper no matching problem when compile quiche on android #49

Open
craterone opened this issue Aug 29, 2023 · 0 comments
Open

Comments

@craterone
Copy link

Hi,
I try to compile quiche on android(ndk r25c), and I get an error.

/root/quic-client/third_party/quiche/quiche/quic/core/io/socket_posix.inc:81:10: error: no matching function for call to 'SyscallWrapper'
  return SyscallWrapper(&::send, sockfd, buf, len, flags);
         ^~~~~~~~~~~~~~
/root/quic-client/third_party/quiche/quiche/quic/core/io/socket_posix.inc:39:8: note: candidate template ignored: couldn't infer template argument 'Result'
Result SyscallWrapper(Result (*syscall)(Args...), Args... args) {
       ^
1 error generated.

It seems we should specify the template arguments.

ssize_t SyscallSend(int sockfd, const void* buf, size_t len, int flags) {
  return SyscallWrapper<ssize_t, int,const void*, size_t, int>(&::send, sockfd, buf, len, flags);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant