quiet/libcorrect

Using with C++

Hiffi opened this issue · 1 comments

Hiffi commented

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

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>
}