Error message suggests that you're compiling C code of SQLite as C++. So the first suggestion will be - do not do that, It's not always compatible. Change settings for compilation of sqlite3.c to C language (I don't know how it's done in VC++ 4, sorry).
Pavel On Mon, Sep 14, 2009 at 9:21 AM, Filipe Madureira <filipe.madure...@sysdevsolutions.com> wrote: > Hi, > > I have an error for sometime compiling the latest versions of SQLite > amalgamation on eVC++ 4 > error: "'Z' : use of class template requires template argument list" > > > The problem is in the declaration of "sqlite3_blob_read prototype". > It is declared in "sqlite3.h" and "sqlite3.c" as: > > SQLITE_API int sqlite3_blob_read(sqlite3_blob *, void *Z, int N, int > iOffset); > > > and it is implemented in "sqlite3.c" as: > > SQLITE_API int sqlite3_blob_read(sqlite3_blob *pBlob, void *z, int n, > int iOffset){ > return blobReadWrite(pBlob, z, n, iOffset, sqlite3BtreeData); > } > > > If I change the uppercase "void *Z" in the declarations to lowerase > "void *z" the compilation error disappears. > > Is this supposed to be declared like this? > The other functions declarations (for example "sqlite3_blob_write") are > all in lowercase. > > > Thanks > > Cumprimentos / Best Regards > > Filipe Madureira > ----------------------------------------------------------------------------- > SYSDEV, LDA - Mobile Solutions > (www.sysdevsolutions.com) > Tel: +351 234188027 > Fax: +351 234188400 > ----------------------------------------------------------------------------- > > > _______________________________________________ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users