Hello,

I was attempting to build a basic build of Fossil (dda5d11d98, dated
2016-01-18@17:48) which failed when attempting to compile sqlite3.c.
The SQLite version is amalgamation version 3.11.0. The Visual C/C++
version used was 15 and 16 (Visual Studio 2008 and 2010). The
following errors were reported:

..\src\sqlite3.c(176657) : error C2143: syntax error : missing ';' before 'type'
..\src\sqlite3.c(176658) : error C2143: syntax error : missing ';' before 'type'
..\src\sqlite3.c(176663) : error C2065: 'n' : undeclared identifier
..\src\sqlite3.c(176669) : error C2065: 'a' : undeclared identifier
..\src\sqlite3.c(176669) : error C2109: subscript requires array or pointer type
..\src\sqlite3.c(176669) : warning C4133: 'function' : incompatible
types - from 'u32 *' to 'const unsigned char *'
..\src\sqlite3.c(176669) : error C2198: 'sqlite3Fts5GetVarint32' : too
few arguments for call
..\src\sqlite3.c(176673) : error C2065: 'a' : undeclared identifier
..\src\sqlite3.c(176673) : error C2109: subscript requires array or pointer type
..\src\sqlite3.c(176673) : warning C4133: 'function' : incompatible
types - from 'u64 *' to 'const unsigned char *'
..\src\sqlite3.c(176673) : error C2198: 'sqlite3Fts5GetVarint' : too
few arguments for call

The compile command was cl /c /nologo /MT /O2  /I. /I..\src
/I..\win\include /I..\compat\zlib /Fo.\sqlite3.obj -c /DNDEBUG=1
/DSQLITE_OMIT_LOAD_EXTENSION=1  /DSQLITE_ENABLE_LOCKING_STYLE=0
/DSQLITE_THREADSAFE=0  /DSQLITE_DEFAULT_FILE_FORMAT=4
/DSQLITE_OMIT_DEPRECATED  /DSQLITE_ENABLE_EXPLAIN_COMMENTS
/DSQLITE_ENABLE_FTS4  /DSQLITE_ENABLE_FTS3_PARENTHESIS
/DSQLITE_ENABLE_DBSTAT_VTAB  /DSQLITE_ENABLE_JSON1
/DSQLITE_ENABLE_FTS5  /DSQLITE_WIN32_NO_ANSI  ..\src\sqlite3.c

Interestingly, when the amalgamation was replaced with version 3.10.1,
the build was successful. Also, the same version of Fossil with SQLite
amalgamation 3.11.0 builds successfully with Visual C/C++ 18 (Visual
Studio 2013).

Thank you for your time,
Ryan
_______________________________________________
fossil-dev mailing list
fossil-dev@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/fossil-dev

Reply via email to