Even when I try to build a new dll I get errors with attach.c and it says cannot convert 'void *' to 'Db *', no matter what route I take I always hit a bump. I'm just trying anything at this point
- Jon -----Original Message----- From: Joe Wilson [mailto:[EMAIL PROTECTED] Sent: Sunday, April 29, 2007 1:59 AM To: sqlite-users@sqlite.org Subject: Re: [sqlite] sqlite and borland c++ builder I wrote too quickly - sqlite3.h correctly uses __cplusplus for extern "C". But the almalgomated sqlite3.c cannot be compiled from a C++ compiler for the reasons described below. --- Joe Wilson <[EMAIL PROTECTED]> wrote: > > When I try to use the header I get errors > > > > [C++ Error] sqlite3.h(1778): E2232 Constant member > > 'sqlite3_index_info::nConstraint' in class without constructors > > It appears it is trying to compile the sqlite header file as if it were C++. > Lemme guess - you're using the almalgomated sqlite3.c from 3.3.17, right? > > from the generated sqlite3.c: > > /* > ** Make sure we can call this stuff from C++. > */ > #if 0 > extern "C" { > #endif > > See the #if 0? That's the problem. It should be: > > #if __cplusplus > > SQLite 3.3.17 has a bug in sqlite3.c generation. > To work around this issue, do this: > > extern "C" { > #include "sqlite3.h" > } > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > ---------------------------------------------------------------------------- - > To unsubscribe, send email to [EMAIL PROTECTED] > ---------------------------------------------------------------------------- - > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ---------------------------------------------------------------------------- - To unsubscribe, send email to [EMAIL PROTECTED] ---------------------------------------------------------------------------- - ----------------------------------------------------------------------------- To unsubscribe, send email to [EMAIL PROTECTED] -----------------------------------------------------------------------------