#ifdef __cplusplus
extern "C" {
#endif
    typedef void* COptions;
    COptions newCOptions(const char*, const char*, const char*);
#ifdef __cplusplus
}
#endif

typedef void* COptions;
COptions newCOptions(const char*, const char*, const char*);

--- 
+++ 
@@ -1,2 +1,8 @@
-typedef void* COptions;
-COptions newCOptions(const char*, const char*, const char*);
+#ifdef __cplusplus
+extern "C" {
+#endif
+    typedef void* COptions;
+    COptions newCOptions(const char*, const char*, const char*);
+#ifdef __cplusplus
+}
+#endif
Add back the C++ extern
