I tried with nmake / Makefile.msc from the VS command prompt but got the
same errors:


C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC>cd C:\Program Files
(x86)
\Microsoft Visual Studio
12.0\VC\vcprojects\Win32\SQLite\sqlite-autoconf-3170000

C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\vcprojects\Win32\SQLite\s
qlite-autoconf-3170000>nmake /f Makefile.msc
Microsoft (R) Program Maintenance Utility Version 12.00.21005.1
Copyright (C) Microsoft Corporation.  All rights reserved.

C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\vcprojects\Win32\SQLite\s
qlite-autoconf-3170000>(echo VERSION = ^#define SQLITE_VERSION
"3.17.0"
1>>rcver.vc )
        cl -nologo -W3   -DSQLITE_OS_WIN=1 -I. -I. -fp:precise -MT -DNDEBUG
-D_C
RT_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 -DS
QLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1   -O2 -Zi
-Fosqlite3.lo
-c sqlite3.c
sqlite3.c
sqlite3.c(16114) : error C2059: syntax error : 'if'
sqlite3.c(16117) : error C2059: syntax error : '}'
sqlite3.c(27461) : error C2143: syntax error : missing ';' before '{'
sqlite3.c(27464) : error C2065: 'db' : undeclared identifier
sqlite3.c(27464) : warning C4047: '=' : 'sqlite3 *' differs in levels of
indirec
tion from 'int'
sqlite3.c(27465) : error C2065: 'enc' : undeclared identifier
sqlite3.c(27467) : error C2065: 'db' : undeclared identifier
sqlite3.c(27467) : error C2223: left of '->mallocFailed' must point to
struct/un
ion
sqlite3.c(27474) : warning C4047: 'return' : 'int' differs in levels of
indirect
ion from 'char *'
sqlite3.c(27482) : error C2143: syntax error : missing ';' before '{'
sqlite3.c(27488) : error C2065: 'nChar' : undeclared identifier
sqlite3.c(27493) : error C2065: 'nChar' : undeclared identifier
sqlite3.c(27603) : error C2143: syntax error : missing ';' before '{'
sqlite3.c(27605) : error C2065: 'iTest' : undeclared identifier
sqlite3.c(27616) : error C2143: syntax error : missing ';' before '{'
sqlite3.c(27645) : error C2065: 'x' : undeclared identifier
sqlite3.c(27664) : error C2143: syntax error : missing ';' before '{'
sqlite3.c(27676) : error C2143: syntax error : missing ';' before '{'
sqlite3.c(27677) : error C2065: 'pCol' : undeclared identifier
sqlite3.c(27677) : error C2223: left of '->colFlags' must point to
struct/union
sqlite3.c(27677) : error C2065: 'zDflt' : undeclared identifier
sqlite3.c(27678) : error C2065: 'pCol' : undeclared identifier
sqlite3.c(27678) : error C2223: left of '->zName' must point to struct/union
sqlite3.c(27678) : error C2168: 'strlen' : too few actual parameters for
intrins
ic function
sqlite3.c(27678) : warning C4033: 'sqlite3Utf8CharLen' must return a value
sqlite3.c(27686) : error C2143: syntax error : missing ';' before '{'
sqlite3.c(27687) : error C2065: 'db' : undeclared identifier
sqlite3.c(27687) : error C2223: left of '->pErr' must point to struct/union
sqlite3.c(27687) : error C2198: 'sqlite3ValueSetNull' : too few arguments
for ca
ll
sqlite3.c(27688) : error C2065: 'db' : undeclared identifier
sqlite3.c(27688) : warning C4047: 'function' : 'sqlite3 *' differs in
levels of
indirection from 'int'
sqlite3.c(27688) : warning C4024: 'sqlite3SystemError' : different types
for for
mal and actual parameter 1
sqlite3.c(27688) : error C2065: 'err_code' : undeclared identifier
sqlite3.c(27696) : error C2143: syntax error : missing ';' before '{'
sqlite3.c(27698) : error C2065: 'db' : undeclared identifier
sqlite3.c(27698) : error C2223: left of '->errCode' must point to
struct/union
sqlite3.c(27698) : error C2065: 'err_code' : undeclared identifier
sqlite3.c(27699) : error C2065: 'err_code' : undeclared identifier
sqlite3.c(27699) : error C2065: 'db' : undeclared identifier
sqlite3.c(27699) : error C2223: left of '->pErr' must point to struct/union
sqlite3.c(27699) : warning C4047: 'function' : 'sqlite3 *' differs in
levels of
indirection from 'int'
sqlite3.c(27699) : warning C4024: 'sqlite3ErrorFinish' : different types
for for
mal and actual parameter 1
sqlite3.c(27706) : error C2143: syntax error : missing ';' before '{'
sqlite3.c(27707) : error C2065: 'rc' : undeclared identifier
sqlite3.c(27707) : warning C4033: 'sqlite3Utf8CharLen' must return a value
sqlite3.c(27708) : error C2065: 'rc' : undeclared identifier
sqlite3.c(27709) : error C2065: 'rc' : undeclared identifier
sqlite3.c(27710) : error C2065: 'db' : undeclared identifier
sqlite3.c(27710) : error C2223: left of '->iSysErrno' must point to
struct/union
sqlite3.c(27710) : error C2223: left of '->pVfs' must point to struct/union
sqlite3.c(27710) : error C2198: 'sqlite3OsGetLastError' : too few arguments
for
call
sqlite3.c(27735) : error C2143: syntax error : missing ';' before '{'
sqlite3.c(27737) : error C2065: 'db' : undeclared identifier
sqlite3.c(27737) : error C2223: left of '->errCode' must point to
struct/union
sqlite3.c(27737) : error C2065: 'err_code' : undeclared identifier
sqlite3.c(27738) : error C2065: 'db' : undeclared identifier
sqlite3.c(27738) : warning C4047: 'function' : 'sqlite3 *' differs in
levels of
indirection from 'int'
sqlite3.c(27738) : warning C4024: 'sqlite3SystemError' : different types
for for
mal and actual parameter 1
sqlite3.c(27738) : error C2065: 'err_code' : undeclared identifier
sqlite3.c(27739) : error C2065: 'zFormat' : undeclared identifier
sqlite3.c(27740) : error C2065: 'db' : undeclared identifier
sqlite3.c(27740) : warning C4047: 'function' : 'sqlite3 *' differs in
levels of
indirection from 'int'
sqlite3.c(27740) : warning C4024: 'sqlite3Error' : different types for
formal an
d actual parameter 1
sqlite3.c(27740) : error C2065: 'err_code' : undeclared identifier
sqlite3.c(27741) : error C2065: 'db' : undeclared identifier
sqlite3.c(27741) : error C2223: left of '->pErr' must point to struct/union
sqlite3.c(27741) : warning C4047: 'function' : 'sqlite3 *' differs in
levels of
indirection from 'int'
sqlite3.c(27741) : warning C4024: 'sqlite3ValueNew' : different types for
formal
 and actual parameter 1
sqlite3.c(27744) : error C2065: 'zFormat' : undeclared identifier
sqlite3.c(27745) : error C2065: 'db' : undeclared identifier
sqlite3.c(27745) : warning C4047: 'function' : 'sqlite3 *' differs in
levels of
indirection from 'int'
sqlite3.c(27745) : warning C4024: 'sqlite3VMPrintf' : different types for
formal
 and actual parameter 1
sqlite3.c(27745) : error C2065: 'zFormat' : undeclared identifier
sqlite3.c(27745) : warning C4047: 'function' : 'const char *' differs in
levels
of indirection from 'int'
sqlite3.c(27745) : warning C4024: 'sqlite3VMPrintf' : different types for
formal
 and actual parameter 2
sqlite3.c(27747) : error C2065: 'db' : undeclared identifier
sqlite3.c(27747) : error C2223: left of '->pErr' must point to struct/union
sqlite3.c(27747) : warning C4047: 'function' : 'sqlite3_value *' differs in
leve
ls of indirection from 'int'
sqlite3.c(27747) : warning C4024: 'sqlite3ValueSetStr' : different types
for for
mal and actual parameter 1
sqlite3.c(27747) : warning C4047: 'function' : 'int' differs in levels of
indire
ction from 'char *'
sqlite3.c(27747) : warning C4024: 'sqlite3ValueSetStr' : different types
for for
mal and actual parameter 2
sqlite3.c(27747) : warning C4022: 'sqlite3ValueSetStr' : pointer mismatch
for ac
tual parameter 3
sqlite3.c(27747) : warning C4047: 'function' : 'u8' differs in levels of
indirec
tion from 'sqlite3_destructor_type'
sqlite3.c(27747) : warning C4024: 'sqlite3ValueSetStr' : different types
for for
mal and actual parameter 4
sqlite3.c(27747) : error C2198: 'sqlite3ValueSetStr' : too few arguments
for cal
l
sqlite3.c(27768) : error C2143: syntax error : missing ';' before '{'
sqlite3.c(27771) : error C2065: 'pParse' : undeclared identifier
sqlite3.c(27771) : error C2223: left of '->db' must point to struct/union
sqlite3.c(27772) : error C2065: 'zFormat' : undeclared identifier
sqlite3.c(27773) : error C2065: 'zFormat' : undeclared identifier
sqlite3.c(27773) : warning C4047: 'function' : 'const char *' differs in
levels
of indirection from 'int'
sqlite3.c(27773) : warning C4024: 'sqlite3VMPrintf' : different types for
formal
 and actual parameter 2
sqlite3.c(27778) : error C2065: 'pParse' : undeclared identifier
sqlite3.c(27778) : error C2223: left of '->nErr' must point to struct/union
sqlite3.c(27779) : error C2065: 'pParse' : undeclared identifier
sqlite3.c(27779) : error C2223: left of '->zErrMsg' must point to
struct/union
sqlite3.c(27779) : error C2198: 'sqlite3DbFree' : too few arguments for call
sqlite3.c(27780) : error C2065: 'pParse' : undeclared identifier
sqlite3.c(27780) : error C2223: left of '->zErrMsg' must point to
struct/union
sqlite3.c(27781) : error C2065: 'pParse' : undeclared identifier
sqlite3.c(27781) : error C2223: left of '->rc' must point to struct/union
sqlite3.c(27802) : error C2143: syntax error : missing ';' before '{'
sqlite3.c(27805) : warning C4033: 'sqlite3Utf8CharLen' must return a value
sqlite3.c(27807) : warning C4033: 'sqlite3Utf8CharLen' must return a value
sqlite3.c(27813) : error C2166: l-value specifies const object
sqlite3.c(27819) : error C2166: l-value specifies const object
sqlite3.c(27822) : error C2166: l-value specifies const object
sqlite3.c(27828) : error C2143: syntax error : missing ';' before '{'
sqlite3.c(27829) : error C2065: 'p' : undeclared identifier
sqlite3.c(27829) : error C2223: left of '->z' must point to struct/union
sqlite3.c(27830) : error C2065: 'p' : undeclared identifier
sqlite3.c(27830) : error C2223: left of '->n' must point to struct/union
sqlite3.c(27846) : error C2143: syntax error : missing ';' before '{'
sqlite3.c(27847) : error C2065: 'zLeft' : undeclared identifier
sqlite3.c(27848) : error C2065: 'zRight' : undeclared identifier
sqlite3.c(27849) : error C2065: 'zRight' : undeclared identifier
sqlite3.c(27852) : error C2065: 'zLeft' : undeclared identifier
sqlite3.c(27852) : warning C4047: 'function' : 'const char *' differs in
levels
of indirection from 'int'
sqlite3.c(27852) : warning C4024: 'sqlite3StrICmp' : different types for
formal
and actual parameter 1
sqlite3.c(27852) : error C2065: 'zRight' : undeclared identifier
sqlite3.c(27852) : warning C4024: 'sqlite3StrICmp' : different types for
formal
and actual parameter 2
sqlite3.c(27854) : error C2143: syntax error : missing ';' before '{'
sqlite3.c(27857) : error C2065: 'zLeft' : undeclared identifier
sqlite3.c(27858) : error C2065: 'zRight' : undeclared identifier
sqlite3.c(27867) : error C2143: syntax error : missing ';' before '{'
sqlite3.c(27869) : error C2065: 'zLeft' : undeclared identifier
sqlite3.c(27870) : error C2065: 'zRight' : undeclared identifier
sqlite3.c(27871) : error C2065: 'zRight' : undeclared identifier
sqlite3.c(27874) : error C2065: 'zLeft' : undeclared identifier
sqlite3.c(27875) : error C2065: 'zRight' : undeclared identifier
sqlite3.c(27876) : error C2065: 'N' : undeclared identifier
sqlite3.c(27877) : error C2065: 'N' : undeclared identifier
sqlite3.c(27902) : error C2143: syntax error : missing ';' before '{'
sqlite3.c(27902) : fatal error C1003: error count exceeds 100; stopping
compilat
ion
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
12.0
\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\vcprojects\Win32\SQLite\s
qlite-autoconf-3170000>

I tried compiling from the MSVS IDE with 3.17 as the source on a different
machine (also Windows 7, same MSVS version)
and compiled fine there.

No idea what the problem is.


RBS

On Tue, Feb 14, 2017 at 8:25 PM, Richard Hipp <d...@sqlite.org> wrote:

> On 2/14/17, Bart Smissaert <bart.smissa...@gmail.com> wrote:
> >
> > Should I compile with nmake instead?
> > Where should I type that?
> >
>
> You can compile however you want, of course. But please know that the
> Visual Studio point-and-click IDE interface is neither tested nor
> supported.  We developers operate from the command-line, that being
> the one true interface for programmers.
>
> To compile, bring up a "VS20xx Native Tools Command Prompt" window,
> "cd" into the source directory, and type:
>
>      nmake /f Makefile.msc
>
> --
> D. Richard Hipp
> d...@sqlite.org
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@mailinglists.sqlite.org
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
>
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to