CMake. Public static library not linking, undefined reference [duplicate]

I was calling a C function from C++ code. I simply needed to add this to my header files:

#ifdef __cplusplus
extern "C" {


#ifdef __cplusplus

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top