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

Using with C++ #19

Open
Hiffi opened this issue May 28, 2018 · 1 comment
Open

Using with C++ #19

Hiffi opened this issue May 28, 2018 · 1 comment

Comments

@Hiffi
Copy link

Hiffi commented May 28, 2018

It seems, that the header of the Library is missing the extern "C" wrapper. It would be easier to use in C++ programs! I edited it for me by hand and it works just fine.

Add (at the beginning of the correct-header):

#ifdef __cplusplus
extern "C" {
#endif

Add (at the end of the correct-header):

#ifdef __cplusplus
}
#endif
@Hiffi Hiffi changed the title Using Library with C++ Using with C++ May 28, 2018
@JayKickliter
Copy link

I just ran into this well. My GNU Radio code using this broke. I did the normal thing when including c headers:

extern "C" {
#include <correct.h>
}

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

2 participants