Try changing:

> #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

to

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

in your config.h and see if this resolves the issue.

> -----Original Message-----
> From: sqlite-users-bounces at mailinglists.sqlite.org [mailto:sqlite-users-
> bounces at mailinglists.sqlite.org] On Behalf Of ajm at zator.com
> Sent: Sunday, 25 October, 2015 13:24
> To: sqlite-users at mailinglists.sqlite.org
> Subject: [sqlite] Erros using some compiler options for SQLite 3. and V.
> Studio 2015
> 
> 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
> 
> _______________________________________________
> sqlite-users mailing list
> sqlite-users at mailinglists.sqlite.org
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users



Reply via email to