With g++ 4.4.7, on a Linux system, including "unqlite.h" surrounded by "extern C" instruction in a CPP file, I get the following error:
[exec] unqlite.h:661: error: declaration of `pgno unqlite_page::pgno'
[exec] unqlite.h:651: error: changes meaning of `pgno' from `typedef sxu64 pgno'
This is due to:
typedef sxu64 pgno;
/*
* A database disk page is represented by an instance
* of the follwoing structure.
*/
typedef struct unqlite_page unqlite_page;
struct unqlite_page
{
unsigned char *zData; /* Content of this page */
void *pUserData; /* Extra content */
pgno pgno; /* Page number for this page */ // <------ This
};
The unqlite lib was compiled with a C compiler, but I have to use a C++ one with the public header.
This is due to the g++ version I believe. I reported this so you know and can decide whether it is something you'd like to handle or not.
With g++ 4.4.7, on a Linux system, including "unqlite.h" surrounded by "extern C" instruction in a CPP file, I get the following error:
This is due to:
The unqlite lib was compiled with a C compiler, but I have to use a C++ one with the public header.
This is due to the g++ version I believe. I reported this so you know and can decide whether it is something you'd like to handle or not.
Cheers!