Hi list:

Using SQLite v.3.9.1 amalgamation code.
MS Visual Studio 2015 for desktop C++ compiler

I've got the same compiler error

1>sqlite3\sqlite3.c(xxxxx): fatal error C1017: expresi?n constante de tipo 
entero no v?lida

 in the following lines of sqlite3.c:

        #if SQLITE_ENABLE_FTS3
        #if SQLITE_ENABLE_FTS3_PARENTHESIS
        #if SQLITE_OMIT_AUTOVACUUM
        #if SQLITE_OMIT_BUILTIN_TEST
        #if SQLITE_OMIT_EXPLAIN
        #if SQLITE_OMIT_FOREIGN_KEY
        #if SQLITE_OMIT_PROGRESS_CALLBACK
        #if SQLITE_OMIT_TCL_VARIABLE
        #if SQLITE_OMIT_TRACE
        #if SQLITE_SECURE_DELETE

The application compiles correctly except when includes the config.h file with 
these compiler options:

#define SQLITE_OMIT_TCL_VARIABLE
#define SQLITE_OMIT_PROGRESS_CALLBACK
#define SQLITE_OMIT_FOREIGN_KEY
#define SQLITE_OMIT_AUTOVACUUM
#define SQLITE_OMIT_EXPLAIN
#define SQLITE_SECURE_DELETE
#define SQLITE_OMIT_BUILTIN_TEST
#define SQLITE_OMIT_TRACE
#define SQLITE_ENABLE_FTS3
#define SQLITE_ENABLE_FTS3_PARENTHESIS

The only directives of my config.h that seem be accepted, are:

#define SQLITE_MAX_VARIABLE_NUMBER 25
#define SQLITE_THREADSAFE 1

Note that the proyect also compiles smoothly without errors using all the 
compiler directives with SQLite v.3.7.15.1 and MS V. Studio 2013.

Any suggestion would be appreciated.

--
Adolfo J. Millan

Reply via email to