I've got problems to link mdbtools library with C++ sourses.
It could be fixed just adding `export "C"` in headers like in mdbodbc.h
done.
Patches included.
--
Sem.
--- include/mdbsql.h.orig Sun Dec 11 18:22:34 2005
+++ include/mdbsql.h Sun Dec 11 18:23:20 2005
@@ -6,6 +6,10 @@
#ifndef _mdbsql_h_
#define _mdbsql_h_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct {
MdbHandle *mdb;
int all_columns;
@@ -59,4 +63,7 @@
void mdb_sql_listtables(MdbSQL *sql);
void mdb_sql_select(MdbSQL *sql);
+#ifdef __cplusplus
+}
+#endif
#endif
--- include/mdbtools.h.orig Sun Dec 11 18:22:42 2005
+++ include/mdbtools.h Sun Dec 11 18:23:32 2005
@@ -40,6 +40,10 @@
#define MDB_MEMO_OVERHEAD 12
#define MDB_BIND_SIZE 16384
+#ifdef __cplusplus
+extern "C" {
+#endif
+
enum {
MDB_PAGE_DB = 0,
MDB_PAGE_DATA,
@@ -345,4 +349,8 @@
/* index.c */
extern GPtrArray *mdb_read_indices(MdbTableDef *table);
extern void mdb_index_dump(MdbTableDef *table, MdbIndex *idx);
+
+#ifdef __cplusplus
+}
+#endif
#endif /* _mdbtools_h_ */
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|