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

Fix compile errors in the server and client. #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

husafan
Copy link

@husafan husafan commented Oct 31, 2021

The client needs to define the type of struct since instances were already allocated in the definition of the grpc_metadata array. Also, the default nullptr's can be removed from the nested obfuscated struct's creation in the same statement.

The server needs to undef the Free macro defined by Rcpp so it can be defined by absl low_level_alloc later.

These changes were tested against grpc version 1.41.1 (12a4a6f8c06b96e38f8576ded76d0b79bce13efd7560ed22134c2f433bc496ad) on Ubuntu 21.04 with gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0.

Fixes #37

The client needs to define the type of struct since instances were already allocated in the definition of the grpc_metadata array. Also, the default nullptr's can be removed from the nested obfuscated struct's creation in the same statement.

The server needs to undef the Free macro defined by Rcpp so it can be defined by absl low_level_alloc later.
@nfultz
Copy link
Owner

nfultz commented Nov 1, 2021

Can you add to your post which version this fix is for? eg output of grpc_version() - we will need to eventually update the metadata / documentation about dependencies.

@husafan
Copy link
Author

husafan commented Nov 2, 2021

Done. I've added the grpc, Ubuntu and gcc versions. Please feel free to not merge this if it doesn't repro. I have it working in my project now, so no rush. Thanks!

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

Successfully merging this pull request may close these issues.

Cannot get the demo working
2 participants