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

Add C++ ifdef inside header to disable mangling #68

Open
nopeslide opened this issue Aug 9, 2020 · 0 comments
Open

Add C++ ifdef inside header to disable mangling #68

nopeslide opened this issue Aug 9, 2020 · 0 comments
Labels
good first issue Good for newcomers

Comments

@nopeslide
Copy link
Collaborator

nopeslide commented Aug 9, 2020

When integrating connxr in C++ we have to disable the C++ function mangling, so our c functions can be linked correctly.
We would need to put all our prototypes or the complete header inside sth like

#ifdef __cplusplus
extern "C" {
#endif

...

#ifdef __cplusplus
}
#endif
@nopeslide nopeslide added the good first issue Good for newcomers label Aug 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant