I keep getting the undefined reference error when calling a c function from c++ code:
void proxy(char *str);
In my funcs.h file, I use the
#ifdef __cplusplus
extern "C" {
#endif
wrapper, and include funcs.h in my c++ code. I also declare the function as
extern "C" void proxy(char *str);
above my main function in the c++ file. But when I call the function, I get the undefined reference error. Any help?