I am having compilation problems after upgrading from v3.7.6.3 to v3.8.4 on
the
static const int iLn = __LINE__+4; <----  lines containing these statements

Tried with VS2012 and VS2013, can someone help me fix this ?

error C2099: initializer is not a constant ..\sqlite3\sqlite3.c 73531
error C2099: initializer is not a constant ..\sqlite3\sqlite3.c 97602
error C2099: initializer is not a constant ..\sqlite3\sqlite3.c 97865
error C2099: initializer is not a constant ..\sqlite3\sqlite3.c 98568
error C2099: initializer is not a constant ..\sqlite3\sqlite3.c 106055


Additionally i was wandering, whether the following is correct.
 __LINE__+4 seems to point to the commented line !!!

73527  ** The sqlite3_blob_close() function finalizes the vdbe program,
73528  ** which closes the b-tree cursor and (possibly) commits the
73529  ** transaction.
73530  */
73531  static const int iLn = __LINE__+4;
73532  static const VdbeOpList openBlob[] = {
73533    /* {OP_Transaction, 0, 0, 0},  // 0: Inserted separately */
73534    {OP_TableLock, 0, 0, 0},       /* 1: Acquire a read or write lock
*/
73535    /* One of the following two instructions is replaced by an
OP_Noop. */
73536    {OP_OpenRead, 0, 0, 0},        /* 2: Open cursor 0 for reading */
73537    {OP_OpenWrite, 0, 0, 0},       /* 3: Open cursor 0 for read/write
*/
73538    {OP_Variable, 1, 1, 1},        /* 4: Push the rowid to the stack */

Thanks in advance!
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to