SQLCipher build failed on Windows 10


#1

I tried to install SQLCipher from source and I got the error:

nmake /f Makefile.msc sqlite3.dll

Microsoft ® Program Maintenance Utility Version 12.00.21005.1
Copyright © Microsoft Corporation. All rights reserved.

    copy /Y tsrc\sqlite3ext.h sqlite3ext.h
    1 file(s) copied.
    tclsh .\tool\mksqlite3c.tcl
    copy .\ext\session\sqlite3session.h .
    1 file(s) copied.
    cl -nologo -W4 -DINCLUDE_MSVC_H=1   -DSQLITE_OS_WIN=1 -I. -I. -I.\src -fp:precise -MT -DNDEBUG -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -DSQLITE_THREADSAFE=1 -DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_TEMP_STORE=1  -DSQLITE_MAX_TRIGGER_DEPTH=100  -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_GEOPOLY=1 -DSQLITE_ENABLE_JSON1=1 -DSQLITE_ENABLE_STMTVTAB=1 -DSQLITE_ENABLE_DBPAGE_VTAB=1 -DSQLITE_ENABLE_DBSTAT_VTAB=1 -DSQLITE_INTROSPECTION_PRAGMAS=1 -DSQLITE_ENABLE_COLUMN_METADATA=1   -O2 -Zi -Fosqlite3.lo  -c sqlite3.c

sqlite3.c
sqlite3.c(1922) : error C2061: syntax error : identifier ‘i64’
sqlite3.c(1922) : error C2059: syntax error : ‘;’
sqlite3.c(1923) : error C2061: syntax error : identifier ‘u64’
sqlite3.c(1923) : error C2059: syntax error : ‘;’
sqlite3.c(2314) : error C2061: syntax error : identifier ‘Bitmask’
sqlite3.c(2314) : error C2059: syntax error : ‘;’
sqlite3.c(2389) : error C2143: syntax error : missing ‘)’ before ‘
sqlite3.c(2389) : error C2143: syntax error : missing ‘{’ before '

sqlite3.c(2389) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
sqlite3.c(2390) : error C2059: syntax error : ‘type’
sqlite3.c(2395) : error C2059: syntax error : ‘)’
sqlite3.c(2412) : error C2081: ‘sqlite3_int64’ : name in formal parameter list illegal
sqlite3.c(2588) : error C2146: syntax error : missing ‘)’ before identifier ‘intKey’
sqlite3.c(2588) : error C2081: ‘i64’ : name in formal parameter list illegal
sqlite3.c(2588) : error C2061: syntax error : identifier ‘intKey’
sqlite3.c(2588) : error C2059: syntax error : ‘;’
sqlite3.c(2588) : error C2059: syntax error : ‘,’
sqlite3.c(2591) : error C2059: syntax error : ‘)’
sqlite3.c(2636) : error C2061: syntax error : identifier ‘sqlite3_int64’
sqlite3.c(2638) : error C2143: syntax error : missing ‘{’ before ‘
sqlite3.c(2638) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
sqlite3.c(2638) : warning C4218: nonstandard extension used : must specify at least a storage class or a type
sqlite3.c(2642) : error C2059: syntax error : ‘}’
sqlite3.c(2654) : error C2061: syntax error : identifier ‘sqlite3BtreeIntegerKey’
sqlite3.c(2654) : error C2059: syntax error : ‘;’
sqlite3.c(2654) : error C2059: syntax error : ‘type’
sqlite3.c(2664) : error C2061: syntax error : identifier ‘sqlite3BtreeRowCountEst’
sqlite3.c(2664) : error C2059: syntax error : ‘;’
sqlite3.c(2664) : error C2059: syntax error : ‘type’
sqlite3.c(2683) : error C2143: syntax error : missing ‘)’ before '

sqlite3.c(2683) : error C2081: ‘i64’ : name in formal parameter list illegal
sqlite3.c(2683) : error C2143: syntax error : missing ‘{’ before ‘
sqlite3.c(2683) : error C2059: syntax error : ‘)’
sqlite3.c(2683) : error C2059: syntax error : ‘;’
sqlite3.c(2702) : error C2143: syntax error : missing ‘)’ before '

sqlite3.c(2702) : error C2143: syntax error : missing ‘{’ before ‘
sqlite3.c(2702) : error C2059: syntax error : ‘)’
sqlite3.c(2702) : error C2059: syntax error : ‘;’
sqlite3.c(2717) : error C2143: syntax error : missing ‘)’ before '

sqlite3.c(2717) : error C2143: syntax error : missing ‘{’ before ‘
sqlite3.c(2717) : error C2059: syntax error : ‘)’
sqlite3.c(2717) : error C2059: syntax error : ‘;’
sqlite3.c(2793) : error C2061: syntax error : identifier ‘i64’
sqlite3.c(2796) : error C2143: syntax error : missing ‘{’ before '

sqlite3.c(2796) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
sqlite3.c(2796) : warning C4218: nonstandard extension used : must specify at least a storage class or a type
sqlite3.c(2808) : error C2059: syntax error : ‘}’
sqlite3.c(2820) : error C2059: syntax error : ‘}’
sqlite3.c(2982) : error C2143: syntax error : missing ‘)’ before ‘
sqlite3.c(2982) : error C2143: syntax error : missing ‘{’ before '

sqlite3.c(2982) : error C2059: syntax error : ‘,’
sqlite3.c(2982) : error C2059: syntax error : ‘)’
sqlite3.c(2996) : error C2143: syntax error : missing ‘{’ before ‘
sqlite3.c(2996) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
sqlite3.c(2996) : warning C4218: nonstandard extension used : must specify at least a storage class or a type
sqlite3.c(3001) : error C2143: syntax error : missing ‘{’ before '

sqlite3.c(3001) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
sqlite3.c(3001) : warning C4218: nonstandard extension used : must specify at least a storage class or a type
sqlite3.c(3021) : error C2143: syntax error : missing ‘)’ before ‘
sqlite3.c(3021) : error C2143: syntax error : missing ‘{’ before '

sqlite3.c(3021) : error C2059: syntax error : ‘)’
sqlite3.c(3021) : error C2059: syntax error : ‘;’
sqlite3.c(3244) : error C2143: syntax error : missing ‘)’ before ‘
sqlite3.c(3244) : error C2143: syntax error : missing ‘{’ before '

sqlite3.c(3244) : error C2059: syntax error : ‘,’
sqlite3.c(3252) : error C2143: syntax error : missing ‘)’ before ‘
sqlite3.c(3252) : error C2081: ‘sqlite3’ : name in formal parameter list illegal
sqlite3.c(3252) : error C2143: syntax error : missing ‘{’ before '

sqlite3.c(3252) : error C2059: syntax error : ‘)’
sqlite3.c(3252) : error C2059: syntax error : ‘;’
sqlite3.c(3264) : error C2081: ‘sqlite3_int64’ : name in formal parameter list illegal
sqlite3.c(3271) : error C2061: syntax error : identifier ‘sqlite3PagerJournalSizeLimit’
sqlite3.c(3271) : error C2059: syntax error : ‘;’
sqlite3.c(3271) : error C2059: syntax error : ‘type’
sqlite3.c(3272) : error C2143: syntax error : missing ‘{’ before ‘
sqlite3.c(3272) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
sqlite3.c(3272) : warning C4218: nonstandard extension used : must specify at least a storage class or a type
sqlite3.c(3304) : error C2143: syntax error : missing ‘)’ before '

sqlite3.c(3304) : error C2081: ‘sqlite3’ : name in formal parameter list illegal
sqlite3.c(3304) : error C2143: syntax error : missing ‘{’ before ‘
sqlite3.c(3304) : error C2059: syntax error : ‘,’
sqlite3.c(3304) : error C2059: syntax error : ‘)’
sqlite3.c(3308) : error C2143: syntax error : missing ‘)’ before '

sqlite3.c(3308) : error C2081: ‘sqlite3’ : name in formal parameter list illegal
sqlite3.c(3308) : error C2143: syntax error : missing ‘{’ before ‘
sqlite3.c(3308) : error C2059: syntax error : ‘)’
sqlite3.c(3308) : error C2059: syntax error : ‘;’
sqlite3.c(3335) : error C2143: syntax error : missing ‘{’ before '

sqlite3.c(3335) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
sqlite3.c(3335) : warning C4218: nonstandard extension used : must specify at least a storage class or a type
sqlite3.c(3336) : error C2143: syntax error : missing ‘{’ before ‘
sqlite3.c(3336) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
sqlite3.c(3336) : warning C4218: nonstandard extension used : must specify at least a storage class or a type
sqlite3.c(3337) : error C2143: syntax error : missing ‘{’ before '

sqlite3.c(3337) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
sqlite3.c(3337) : warning C4218: nonstandard extension used : must specify at least a storage class or a type
sqlite3.c(3343) : error C2143: syntax error : missing ‘)’ before ‘
sqlite3.c(3343) : error C2143: syntax error : missing ‘{’ before '

sqlite3.c(3343) : error C2059: syntax error : ‘)’
sqlite3.c(3343) : error C2059: syntax error : ‘;’
sqlite3.c(3405) : error C2016: C requires that a struct or union has at least one member
sqlite3.c(3405) : error C2061: syntax error : identifier ‘sqlite3_pcache_page’
sqlite3.c(3406) : error C2373: ‘pData’ : redefinition; different type modifiers
sqlite3.c(2637) : see declaration of ‘pData’
sqlite3.c(3427) : error C2059: syntax error : ‘}’
sqlite3.c(3473) : error C2143: syntax error : missing ‘{’ before ‘
sqlite3.c(3473) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
sqlite3.c(3473) : warning C4218: nonstandard extension used : must specify at least a storage class or a type
sqlite3.c(3474) : error C2143: syntax error : missing ‘)’ before '

sqlite3.c(3474) : error C2081: ‘sqlite3_pcache_page’ : name in formal parameter list illegal
sqlite3.c(3474) : error C2143: syntax error : missing ‘{’ before ‘
sqlite3.c(3474) : error C2059: syntax error : ‘)’
sqlite3.c(3474) : error C2059: syntax error : ‘;’
sqlite3.c(3475) : error C2143: syntax error : missing ‘)’ before '

sqlite3.c(3475) : error C2081: ‘sqlite3_pcache_page’ : name in formal parameter list illegal
sqlite3.c(3475) : error C2143: syntax error : missing ‘{’ before ‘
sqlite3.c(3475) : error C2059: syntax error : ‘)’
sqlite3.c(3475) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
sqlite3.c(3475) : warning C4218: nonstandard extension used : must specify at least a storage class or a type
sqlite3.c(3794) : error C2143: syntax error : missing ‘)’ before '

sqlite3.c(3794) : error C2143: syntax error : missing ‘{’ before ‘*’
sqlite3.c(3794) : error C2059: syntax error : ‘)’
sqlite3.c(3794) : error C2059: syntax error : ‘;’
sqlite3.c(3794) : fatal error C1003: error count exceeds 100; stopping compilation
NMAKE : fatal error U1077: ‘“C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\cl.EXE”’ : return code ‘0x2’
Stop.

C:\Users\84902\Documents\sqlcipher>nmake /f Makefile.msc sqlite3.dll

Microsoft ® Program Maintenance Utility Version 12.00.21005.1
Copyright © Microsoft Corporation. All rights reserved.

    copy /Y tsrc\sqlite3ext.h sqlite3ext.h
    1 file(s) copied.
    tclsh .\tool\mksqlite3c.tcl
    copy .\ext\session\sqlite3session.h .
    1 file(s) copied.
    cl -nologo -W4 -DINCLUDE_MSVC_H=1   -DSQLITE_OS_WIN=1 -I. -I. -I.\src -fp:precise -MT -DNDEBUG -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -DSQLITE_THREADSAFE=1 -DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_TEMP_STORE=1  -DSQLITE_MAX_TRIGGER_DEPTH=100  -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_GEOPOLY=1 -DSQLITE_ENABLE_JSON1=1 -DSQLITE_ENABLE_STMTVTAB=1 -DSQLITE_ENABLE_DBPAGE_VTAB=1 -DSQLITE_ENABLE_DBSTAT_VTAB=1 -DSQLITE_INTROSPECTION_PRAGMAS=1 -DSQLITE_ENABLE_COLUMN_METADATA=1   -O2 -Zi -Fosqlite3.lo  -c sqlite3.c

sqlite3.c
sqlite3.c(1922) : error C2061: syntax error : identifier ‘i64’
sqlite3.c(1922) : error C2059: syntax error : ‘;’
sqlite3.c(1923) : error C2061: syntax error : identifier ‘u64’
sqlite3.c(1923) : error C2059: syntax error : ‘;’
sqlite3.c(2314) : error C2061: syntax error : identifier ‘Bitmask’
sqlite3.c(2314) : error C2059: syntax error : ‘;’
sqlite3.c(2389) : error C2143: syntax error : missing ‘)’ before ‘
sqlite3.c(2389) : error C2143: syntax error : missing ‘{’ before '

sqlite3.c(2389) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
sqlite3.c(2390) : error C2059: syntax error : ‘type’
sqlite3.c(2395) : error C2059: syntax error : ‘)’
sqlite3.c(2412) : error C2081: ‘sqlite3_int64’ : name in formal parameter list illegal
sqlite3.c(2588) : error C2146: syntax error : missing ‘)’ before identifier ‘intKey’
sqlite3.c(2588) : error C2081: ‘i64’ : name in formal parameter list illegal
sqlite3.c(2588) : error C2061: syntax error : identifier ‘intKey’
sqlite3.c(2588) : error C2059: syntax error : ‘;’
sqlite3.c(2588) : error C2059: syntax error : ‘,’
sqlite3.c(2591) : error C2059: syntax error : ‘)’
sqlite3.c(2636) : error C2061: syntax error : identifier ‘sqlite3_int64’
sqlite3.c(2638) : error C2143: syntax error : missing ‘{’ before ‘
sqlite3.c(2638) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
sqlite3.c(2638) : warning C4218: nonstandard extension used : must specify at least a storage class or a type
sqlite3.c(2642) : error C2059: syntax error : ‘}’
sqlite3.c(2654) : error C2061: syntax error : identifier ‘sqlite3BtreeIntegerKey’
sqlite3.c(2654) : error C2059: syntax error : ‘;’
sqlite3.c(2654) : error C2059: syntax error : ‘type’
sqlite3.c(2664) : error C2061: syntax error : identifier ‘sqlite3BtreeRowCountEst’
sqlite3.c(2664) : error C2059: syntax error : ‘;’
sqlite3.c(2664) : error C2059: syntax error : ‘type’
sqlite3.c(2683) : error C2143: syntax error : missing ‘)’ before '

sqlite3.c(2683) : error C2081: ‘i64’ : name in formal parameter list illegal
sqlite3.c(2683) : error C2143: syntax error : missing ‘{’ before ‘
sqlite3.c(2683) : error C2059: syntax error : ‘)’
sqlite3.c(2683) : error C2059: syntax error : ‘;’
sqlite3.c(2702) : error C2143: syntax error : missing ‘)’ before '

sqlite3.c(2702) : error C2143: syntax error : missing ‘{’ before ‘
sqlite3.c(2702) : error C2059: syntax error : ‘)’
sqlite3.c(2702) : error C2059: syntax error : ‘;’
sqlite3.c(2717) : error C2143: syntax error : missing ‘)’ before '

sqlite3.c(2717) : error C2143: syntax error : missing ‘{’ before ‘
sqlite3.c(2717) : error C2059: syntax error : ‘)’
sqlite3.c(2717) : error C2059: syntax error : ‘;’
sqlite3.c(2793) : error C2061: syntax error : identifier ‘i64’
sqlite3.c(2796) : error C2143: syntax error : missing ‘{’ before '

sqlite3.c(2796) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
sqlite3.c(2796) : warning C4218: nonstandard extension used : must specify at least a storage class or a type
sqlite3.c(2808) : error C2059: syntax error : ‘}’
sqlite3.c(2820) : error C2059: syntax error : ‘}’
sqlite3.c(2982) : error C2143: syntax error : missing ‘)’ before ‘
sqlite3.c(2982) : error C2143: syntax error : missing ‘{’ before '

sqlite3.c(2982) : error C2059: syntax error : ‘,’
sqlite3.c(2982) : error C2059: syntax error : ‘)’
sqlite3.c(2996) : error C2143: syntax error : missing ‘{’ before ‘
sqlite3.c(2996) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
sqlite3.c(2996) : warning C4218: nonstandard extension used : must specify at least a storage class or a type
sqlite3.c(3001) : error C2143: syntax error : missing ‘{’ before '

sqlite3.c(3001) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
sqlite3.c(3001) : warning C4218: nonstandard extension used : must specify at least a storage class or a type
sqlite3.c(3021) : error C2143: syntax error : missing ‘)’ before ‘
sqlite3.c(3021) : error C2143: syntax error : missing ‘{’ before '

sqlite3.c(3021) : error C2059: syntax error : ‘)’
sqlite3.c(3021) : error C2059: syntax error : ‘;’
sqlite3.c(3244) : error C2143: syntax error : missing ‘)’ before ‘
sqlite3.c(3244) : error C2143: syntax error : missing ‘{’ before '

sqlite3.c(3244) : error C2059: syntax error : ‘,’
sqlite3.c(3252) : error C2143: syntax error : missing ‘)’ before ‘
sqlite3.c(3252) : error C2081: ‘sqlite3’ : name in formal parameter list illegal
sqlite3.c(3252) : error C2143: syntax error : missing ‘{’ before '

sqlite3.c(3252) : error C2059: syntax error : ‘)’
sqlite3.c(3252) : error C2059: syntax error : ‘;’
sqlite3.c(3264) : error C2081: ‘sqlite3_int64’ : name in formal parameter list illegal
sqlite3.c(3271) : error C2061: syntax error : identifier ‘sqlite3PagerJournalSizeLimit’
sqlite3.c(3271) : error C2059: syntax error : ‘;’
sqlite3.c(3271) : error C2059: syntax error : ‘type’
sqlite3.c(3272) : error C2143: syntax error : missing ‘{’ before ‘
sqlite3.c(3272) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
sqlite3.c(3272) : warning C4218: nonstandard extension used : must specify at least a storage class or a type
sqlite3.c(3304) : error C2143: syntax error : missing ‘)’ before '

sqlite3.c(3304) : error C2081: ‘sqlite3’ : name in formal parameter list illegal
sqlite3.c(3304) : error C2143: syntax error : missing ‘{’ before ‘
sqlite3.c(3304) : error C2059: syntax error : ‘,’
sqlite3.c(3304) : error C2059: syntax error : ‘)’
sqlite3.c(3308) : error C2143: syntax error : missing ‘)’ before '

sqlite3.c(3308) : error C2081: ‘sqlite3’ : name in formal parameter list illegal
sqlite3.c(3308) : error C2143: syntax error : missing ‘{’ before ‘
sqlite3.c(3308) : error C2059: syntax error : ‘)’
sqlite3.c(3308) : error C2059: syntax error : ‘;’
sqlite3.c(3335) : error C2143: syntax error : missing ‘{’ before '

sqlite3.c(3335) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
sqlite3.c(3335) : warning C4218: nonstandard extension used : must specify at least a storage class or a type
sqlite3.c(3336) : error C2143: syntax error : missing ‘{’ before ‘
sqlite3.c(3336) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
sqlite3.c(3336) : warning C4218: nonstandard extension used : must specify at least a storage class or a type
sqlite3.c(3337) : error C2143: syntax error : missing ‘{’ before '

sqlite3.c(3337) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
sqlite3.c(3337) : warning C4218: nonstandard extension used : must specify at least a storage class or a type
sqlite3.c(3343) : error C2143: syntax error : missing ‘)’ before ‘
sqlite3.c(3343) : error C2143: syntax error : missing ‘{’ before '

sqlite3.c(3343) : error C2059: syntax error : ‘)’
sqlite3.c(3343) : error C2059: syntax error : ‘;’
sqlite3.c(3405) : error C2016: C requires that a struct or union has at least one member
sqlite3.c(3405) : error C2061: syntax error : identifier ‘sqlite3_pcache_page’
sqlite3.c(3406) : error C2373: ‘pData’ : redefinition; different type modifiers
sqlite3.c(2637) : see declaration of ‘pData’
sqlite3.c(3427) : error C2059: syntax error : ‘}’
sqlite3.c(3473) : error C2143: syntax error : missing ‘{’ before ‘
sqlite3.c(3473) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
sqlite3.c(3473) : warning C4218: nonstandard extension used : must specify at least a storage class or a type
sqlite3.c(3474) : error C2143: syntax error : missing ‘)’ before '

sqlite3.c(3474) : error C2081: ‘sqlite3_pcache_page’ : name in formal parameter list illegal
sqlite3.c(3474) : error C2143: syntax error : missing ‘{’ before ‘
sqlite3.c(3474) : error C2059: syntax error : ‘)’
sqlite3.c(3474) : error C2059: syntax error : ‘;’
sqlite3.c(3475) : error C2143: syntax error : missing ‘)’ before '

sqlite3.c(3475) : error C2081: ‘sqlite3_pcache_page’ : name in formal parameter list illegal
sqlite3.c(3475) : error C2143: syntax error : missing ‘{’ before ‘
sqlite3.c(3475) : error C2059: syntax error : ‘)’
sqlite3.c(3475) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
sqlite3.c(3475) : warning C4218: nonstandard extension used : must specify at least a storage class or a type
sqlite3.c(3794) : error C2143: syntax error : missing ‘)’ before '

sqlite3.c(3794) : error C2143: syntax error : missing ‘{’ before ‘*’
sqlite3.c(3794) : error C2059: syntax error : ‘)’
sqlite3.c(3794) : error C2059: syntax error : ‘;’
sqlite3.c(3794) : fatal error C1003: error count exceeds 100; stopping compilation
NMAKE : fatal error U1077: ‘“C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\cl.EXE”’ : return code ‘0x2’
Stop.

Any help, where is the reason?
Would appreciate.