Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-21 Thread Duncan Hall
Brilliant! Thanks

 

 

> cl sqlite3.c -link -dll -out:sqlite3.dll 

 

cl sqlite3.c -DSQLITE_API=__declspec(dllexport) -link -dll -out:sqlite3.dll 

 

> nmake /f makefile.msc 

 

nmake /f makefile.msc DYNAMIC_SHELL=1

___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-21 Thread Cezary H. Noweta

Hello,

On 2017-02-21 07:32, Green Fields wrote:


cl sqlite3.c -link -dll -out:sqlite3.dll


cl sqlite3.c -DSQLITE_API=__declspec(dllexport) -link -dll -out:sqlite3.dll


nmake /f makefile.msc


nmake /f makefile.msc DYNAMIC_SHELL=1

-- best regards

Cezary H. Noweta
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-20 Thread Green Fields
I have attempted to compile 3.17.0 in MSVS using the 32 bit native command
line
No editing of sources was done
I have tried the amalgamation download with

cl sqlite3.c -link -dll -out:sqlite3.dll

and sqlite-autoconf-317.tar.gz with

nmake /f makefile.msc

In both cases the dll was produced without any messages.
File sizes were different and no functions appear to have been exported,
checking depends.exe
In the second case an apparently fully functional command line exe was
produced - nice

I am not very familiar with building c files.
What am I missing? MSVS has several command line programs, is that the
correct one in this case?
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-19 Thread Bart Smissaert
Just to update on this.
I fixed it by getting the MSVS solution setup from the other PC and replace
the one that had the problem.
This was to do with some faulty setting in the solution setup, not sure
which one.
So, it had not do with a corrupted MSVS application and also not with a
messed up source file, sqlite3.c.

RBS

On Wed, Feb 15, 2017 at 3:36 AM, Kevin Benson 
wrote:

> On Tue, Feb 14, 2017 at 7:56 PM, Bart Smissaert 
> wrote:
>
> > I had to install WinZip though and at the first unzip I got directly to
> the
> > files whereas now I had a .tar file first and had to unzip that.
> >
>
> Following on from David Empson's post... the WinZip docs show an
> Advanced->File handling option named  that
> likely facilitated your .TAR file attempt:
> http://kb.winzip.com/help/HELP_CONFIG_MISC.htm
> --
>--
>   --
>  --Ö¿Ö--
> K e V i N
> ___
> 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


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Kevin Benson
On Tue, Feb 14, 2017 at 7:56 PM, Bart Smissaert 
wrote:

> I had to install WinZip though and at the first unzip I got directly to the
> files whereas now I had a .tar file first and had to unzip that.
>

Following on from David Empson's post... the WinZip docs show an
Advanced->File handling option named  that
likely facilitated your .TAR file attempt:
http://kb.winzip.com/help/HELP_CONFIG_MISC.htm
--
   --
  --
 --Ö¿Ö--
K e V i N
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread David Empson
I expect WinZip defaults to converting text files from Unix to DOS line 
endings, or you opened and saved the file with something which does the same 
conversion.

I don’t have WinZip handy, but using other tools…

My copy of sqlite3.c extracted from sqlite-autoconf-317.tar.gz using Take 
Command’s built-in untar command, or with a Windows port of Unix tar/gunzip 
utilities, produces a file with Unix line endings, and the expected fciv result 
of 1efd683943e0d2bce1495b3413e2e235.

If I then run it through a LF to CRLF translation, that copy has an fciv result 
of b0245450e4f27eeefc0da4a871833eb1, which matches Bart’s result.

There should be no difference between Unix and DOS line endings as far as the 
compiler is concerned, so if your re-downloaded and re-extracted sqlite3.c is 
compiling OK with nmake, it probably means your original extracted copy was 
modified up in some way.

If the errors turn up again when compiling the newly downloaded file with MSVS 
IDE, perhaps the IDE itself is the one messing up the file?

I’d investigate this as follows:

1. Use WinZip to extract a fresh copy from the .tar.gz file.
2. Take a copy of the resulting sqlite-autoconf-317 folder.
3. Do your compilation of the second copy of sqlite3.c using the MSVC IDE. 
Presumably this will get the errors again.
4. Now try compiling the second copy using nmake.
5. If nmake also gets errors, try compiling the first copy (extracted but never 
opened) with nmake.

If (4) gets errors but (5) doesn’t then the MSVS IDE modified the file in the 
process of opening or compiling it. You could then use file comparison tools to 
work out what changed.

If (3) gets errors but (4) doesn’t then MSVS IDE has something different in its 
compilation environment which is affecting how sqlite3.c is compiled, e.g. 
different header files or definitions which are conflicting with something in 
sqlite3.c.

> On 15/02/2017, at 2:14 PM, Bart Smissaert  wrote:
> 
> No idea why that is. Could the WinZip alter the file?
> Another thing is that if I run that sqlite3.c from the MSVS IDE I get the
> same errors.
> 
> RBS
> 
> On Wed, Feb 15, 2017 at 1:11 AM, Cezary H. Noweta 
> wrote:
> 
>> Hello,
>> 
>> On 2017-02-15 01:56, Bart Smissaert wrote:
>> 
>>> Downloaded again and now it looks more healthy:
>>> [...]
>>> b0245450e4f27eeefc0da4a871833eb1 sqlite3.c
>>> 
>> 
>> Still not an original one! MD5 of an original ``sqlite3.c'' is
>> 1efd683943e0d2bce1495b3413e2e235.
>> 
>> 
>> -- best regards
>> 
>> Cezary H. Noweta


___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Bart Smissaert
No idea why that is. Could the WinZip alter the file?
Another thing is that if I run that sqlite3.c from the MSVS IDE I get the
same errors.

RBS

On Wed, Feb 15, 2017 at 1:11 AM, Cezary H. Noweta 
wrote:

> Hello,
>
> On 2017-02-15 01:56, Bart Smissaert wrote:
>
>> Downloaded again and now it looks more healthy:
>> [...]
>> b0245450e4f27eeefc0da4a871833eb1 sqlite3.c
>>
>
> Still not an original one! MD5 of an original ``sqlite3.c'' is
> 1efd683943e0d2bce1495b3413e2e235.
>
>
> -- best regards
>
> Cezary H. Noweta
> ___
> 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


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Cezary H. Noweta

Hello,

On 2017-02-15 01:56, Bart Smissaert wrote:

Downloaded again and now it looks more healthy:
[...]
b0245450e4f27eeefc0da4a871833eb1 sqlite3.c


Still not an original one! MD5 of an original ``sqlite3.c'' is 
1efd683943e0d2bce1495b3413e2e235.


-- best regards

Cezary H. Noweta
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Bart Smissaert
Downloaded again and now it looks more healthy:


C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC>cd
C:\SQLite\sqlite-autoc
onf-317
C:\SQLite\sqlite-autoconf-317>C:\FCIV\fciv sqlite3.c && nmake /f
Makefile.ms
c
//
// File Checksum Integrity Verifier version 2.05.
//
b0245450e4f27eeefc0da4a871833eb1 sqlite3.c
Microsoft (R) Program Maintenance Utility Version 12.00.21005.1
Copyright (C) Microsoft Corporation.  All rights reserved.

C:\SQLite\sqlite-autoconf-317>(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
echo #ifndef SQLITE_RESOURCE_VERSION > sqlite3rc.h
echo #define SQLITE_RESOURCE_VERSION  3,17,0 >> sqlite3rc.h
echo #endif >> sqlite3rc.h
rc -DSQLITE_OS_WIN=1 -I. -I.   -DNDEBUG -D_CRT_SECURE_NO_DEPRECATE
-D_CR
T_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS
-DSQ
LITE_THREADSAFE=1 -DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_TEMP_STORE=1
-DSQLI
TE_MAX_TRIGGER_DEPTH=100  -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_RTREE=1
-DSQLIT
E_ENABLE_COLUMN_METADATA=1   -r -fo sqlite3res.lo -DRC_VERONLY .\sqlite3.rc
Microsoft (R) Windows (R) Resource Compiler Version 6.3.9600.16384
Copyright (C) Microsoft Corporation.  All rights reserved.
csc.exe /target:exe .\Replace.cs
Microsoft (R) Visual C# Compiler version 12.0.21005.1
for C# 5
Copyright (C) Microsoft Corporation. All rights reserved.
echo EXPORTS > sqlite3.def
dumpbin /all sqlite3.lo  | .\Replace.exe "^\s+/EXPORT:_?(sqlite3(?:
sessi
on|changeset)?_[^@,]*)(?:@\d+|,DATA)?$" $1 true  | sort >> sqlite3.def
link.exe /DEBUG  /NOLOGO  /DLL /DEF:sqlite3.def /OUT:sqlite3.dll
sqlite3
.lo sqlite3res.lo
   Creating library sqlite3.lib and object sqlite3.exp
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
-Fesqlite3.exe
 -DSQLITE_SHELL_JSON1 -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_EXPLAIN_COMMENTS
-DHA
VE_READLINE=0 .\shell.c sqlite3.c  /link /pdb:sqlite3sh.pdb /DEBUG
/NOLOGO   sq
lite3res.lo
shell.c
sqlite3.c
Generating Code...
LINK : sqlite3.exe not found or not built by the last incremental link;
performi
ng full link
C:\SQLite\sqlite-autoconf-317>


Not sure why the difference as the previous source file was fresh
downloaded as well.
I had to install WinZip though and at the first unzip I got directly to the
files whereas now I had a .tar file first and had to unzip that.
Thanks for getting me on the right track!

RBS

On Wed, Feb 15, 2017 at 12:35 AM, Cezary H. Noweta 
wrote:

> Hello,
>
> On 2017-02-15 01:26, Bart Smissaert wrote:
>
>> OK, that gives this:
>> [...]
>>
>
> bd6dfd8b2b566ca64ff9f4c637e533f6
>>
>
> That means, you are not using an original, unmodified sqlite3.c file.
> Download/unpack an original autoconf package and try once again.
>
>
> -- best regards
>
> Cezary H. Noweta
> ___
> 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


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Cezary H. Noweta

Hello,

On 2017-02-15 01:26, Bart Smissaert wrote:

OK, that gives this:
[...]



bd6dfd8b2b566ca64ff9f4c637e533f6


That means, you are not using an original, unmodified sqlite3.c file.
Download/unpack an original autoconf package and try once again.

-- best regards

Cezary H. Noweta
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Bart Smissaert
OK, that gives this:


C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC>cd
C:\SQLite\sqlite-autoc
onf-317
C:\SQLite\sqlite-autoconf-317>fciv sqlite3.c && nmake /f Makefile.msc
'fciv' is not recognized as an internal or external command,
operable program or batch file.
C:\SQLite\sqlite-autoconf-317>fciv.exe sqlite3.c && nmake /f
Makefile.msc
'fciv.exe' is not recognized as an internal or external command,
operable program or batch file.
C:\SQLite\sqlite-autoconf-317>C:\FCIV\fciv sqlite3.c && nmake /f
Makefile.ms
c
//
// File Checksum Integrity Verifier version 2.05.
//
bd6dfd8b2b566ca64ff9f4c637e533f6 sqlite3.c
Microsoft (R) Program Maintenance Utility Version 12.00.21005.1
Copyright (C) Microsoft Corporation.  All rights reserved.

C:\SQLite\sqlite-autoconf-317>(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

Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Cezary H. Noweta

Hello,

On 2017-02-15 00:53, Bart Smissaert wrote:

I tried first with the original source, without altering anything at all. I
then had the errors.


Could you download and unpack 
https://support.microsoft.com/en-us/help/841290/availability-and-description-of-the-file-checksum-integrity-verifier-utility

then run from VS command prompt:

fciv sqlite3.c && nmake /f Makefile.msc

then send the output? You have run a similar command in a response to DRH.

-- best regards

Cezary H. Noweta
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Bart Smissaert
Actually first time I saw these errors the source file and the solution
file were on a USB stick and again that worked fine before.

RBS

On Tue, Feb 14, 2017 at 11:54 PM, Bart Smissaert 
wrote:

> > There's no way to do this on a normal installation that doesn't
> involve modifying the Visual Studio installation directory,
>
> Has worked fine before, but will try now with a different directory.
>
> RBS
>
> On Tue, Feb 14, 2017 at 11:46 PM, Random Coder 
> wrote:
>
>> On Tue, Feb 14, 2017 at 1:23 PM, Bart Smissaert
>>  wrote:
>> > C:\Program Files (x86)\Microsoft Visual Studio
>> > 12.0\VC\vcprojects\Win32\SQLite\s
>> > qlite-autoconf-317>nmake /f Makefile.msc
>>
>> What?!
>>
>> You're building from the installation directory?
>>
>> There's no way to do this on a normal installation that doesn't
>> involve modifying the Visual Studio installation directory, or running
>> in an elevated command prompt, both of which can cause no end of
>> problems.
>>
>> Given you're the only one that can reproduce this problem, I'd highly
>> recommend uninstalling Visual Studio and reinstalling it.  There's no
>> telling what state you've gotten things into.
>> ___
>> 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


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Bart Smissaert
> There's no way to do this on a normal installation that doesn't
involve modifying the Visual Studio installation directory,

Has worked fine before, but will try now with a different directory.

RBS

On Tue, Feb 14, 2017 at 11:46 PM, Random Coder 
wrote:

> On Tue, Feb 14, 2017 at 1:23 PM, Bart Smissaert
>  wrote:
> > C:\Program Files (x86)\Microsoft Visual Studio
> > 12.0\VC\vcprojects\Win32\SQLite\s
> > qlite-autoconf-317>nmake /f Makefile.msc
>
> What?!
>
> You're building from the installation directory?
>
> There's no way to do this on a normal installation that doesn't
> involve modifying the Visual Studio installation directory, or running
> in an elevated command prompt, both of which can cause no end of
> problems.
>
> Given you're the only one that can reproduce this problem, I'd highly
> recommend uninstalling Visual Studio and reinstalling it.  There's no
> telling what state you've gotten things into.
> ___
> 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


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Bart Smissaert
I tried first with the original source, without altering anything at all. I
then had the errors.

RBS

On Tue, Feb 14, 2017 at 11:38 PM, Cezary H. Noweta 
wrote:

> Hello,
>
> On 2017-02-14 23:52, Bart Smissaert wrote:
>
>> I tried both with and without that backslash.
>>
>
> ``That backslash''? Did you mean ``Those backslashes''?
>
> In the first post you mentioned that the problem concerned ``while'',
> however in the response to DRH, the first error appeared at ``if''.
>
> 1. ``while'' -- you had backslash at the end of the first line: error was
> caused by a statement ``while'' out of a function, and you should receive
> an additional syntax error at the first closing ``}'' after ``while''.
>
> 2. ``if'' -- you had no backslashes: error was caused by a statement
> ``if'' out of a function, and you received an additional syntax error at
> final closing ``}'' (the first closing ``}'' was paired with opening ``{''
> after ``if'').
>
> All lines but the last one (containing final ``}'') of the macro must be
> ended with ``\'' and a newline. Make sure that newline immediately follows
> a backslash, because \ is not recognized as a line
> continuation. A splicing physical lines to establish logical ones is done
> at the very early stage of translation, even before spaces/comments are
> removed.
>
> -- best regards
>
> Cezary H. Noweta
>
> ___
> 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


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Random Coder
On Tue, Feb 14, 2017 at 1:23 PM, Bart Smissaert
 wrote:
> C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\vcprojects\Win32\SQLite\s
> qlite-autoconf-317>nmake /f Makefile.msc

What?!

You're building from the installation directory?

There's no way to do this on a normal installation that doesn't
involve modifying the Visual Studio installation directory, or running
in an elevated command prompt, both of which can cause no end of
problems.

Given you're the only one that can reproduce this problem, I'd highly
recommend uninstalling Visual Studio and reinstalling it.  There's no
telling what state you've gotten things into.
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Cezary H. Noweta

Hello,

On 2017-02-14 23:52, Bart Smissaert wrote:

I tried both with and without that backslash.


``That backslash''? Did you mean ``Those backslashes''?

In the first post you mentioned that the problem concerned ``while'', 
however in the response to DRH, the first error appeared at ``if''.


1. ``while'' -- you had backslash at the end of the first line: error 
was caused by a statement ``while'' out of a function, and you should 
receive an additional syntax error at the first closing ``}'' after 
``while''.


2. ``if'' -- you had no backslashes: error was caused by a statement 
``if'' out of a function, and you received an additional syntax error at 
final closing ``}'' (the first closing ``}'' was paired with opening 
``{'' after ``if'').


All lines but the last one (containing final ``}'') of the macro must be 
ended with ``\'' and a newline. Make sure that newline immediately 
follows a backslash, because \ is not recognized as a 
line continuation. A splicing physical lines to establish logical ones 
is done at the very early stage of translation, even before 
spaces/comments are removed.


-- best regards

Cezary H. Noweta
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Bart Smissaert
First time I saw this.
Mind you I only use MSVS to compile SQLite.

RBS

On Tue, Feb 14, 2017 at 10:57 PM, Richard Hipp  wrote:

> On 2/14/17, Bart Smissaert  wrote:
> > I just tried with an old 3.11.1 and got different errors:
>
> When did a "potentially uninitialized variable" become an error rather
> than a warning?
>
> This is important because MSVC is notoriously bad about overestimating
> the chances of a variable being used uninitialized.
>
> >
> > Error 1 error C4703: potentially uninitialized local pointer variable
> > 'pDbPage' used c:\program files (x86)\microsoft visual studio
> > 12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 57565 1 SQLite
> > Error 2 error C4703: potentially uninitialized local pointer variable
> > 'pDbPage' used c:\program files (x86)\microsoft visual studio
> > 12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 57498 1 SQLite
> > Error 3 error C4703: potentially uninitialized local pointer variable
> > 'pDbPage' used c:\program files (x86)\microsoft visual studio
> > 12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 56552 1 SQLite
> > Error 4 error C4703: potentially uninitialized local pointer variable
> > 'pPage' used c:\program files (x86)\microsoft visual studio
> > 12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 49637 1 SQLite
> > Error 5 error C4703: potentially uninitialized local pointer variable
> > 'pPgHdr' used c:\program files (x86)\microsoft visual studio
> > 12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 50675 1 SQLite
> > Error 6 error C4703: potentially uninitialized local pointer variable
> > 'pPgHdr' used c:\program files (x86)\microsoft visual studio
> > 12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 49804 1 SQLite
> > Error 7 error C4703: potentially uninitialized local pointer variable
> > 'pDbPage' used c:\program files (x86)\microsoft visual studio
> > 12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 60186 1 SQLite
> > Error 8 error C4703: potentially uninitialized local pointer variable
> > 'pOvflPage' used c:\program files (x86)\microsoft visual studio
> > 12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 64506 1 SQLite
> > Error 9 error C4703: potentially uninitialized local pointer variable
> > 'pSrcPg' used c:\program files (x86)\microsoft visual studio
> > 12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 65695 1 SQLite
> > Error 10 error C4703: potentially uninitialized local pointer variable
> > 'pPg' used c:\program files (x86)\microsoft visual studio
> > 12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 65795 1 SQLite
> > Error 11 error LNK1257: code generation failed C:\Program Files
> > (x86)\Microsoft Visual Studio
> > 12.0\VC\vcprojects\Win32\SQLite\3_11_1\SQLite\SQLite\LINK SQLite
> >
> > RBS
> >
> > On Tue, Feb 14, 2017 at 10:30 PM, Simon Slavin 
> wrote:
> >
> >>
> >> On 14 Feb 2017, at 10:27pm, Bob Friesenhahn <
> bfrie...@simple.dallas.tx.us>
> >> wrote:
> >>
> >> > On Tue, 14 Feb 2017, Simon Slavin wrote:
> >> >>
> >> >> There’s always the chance that your copy of VC (or its compiler) got
> >> corrupted somehow.
> >> >
> >> > I think that this compiler uses a rolling release model so not
> everyone
> >> is using the same "MSVS 12" compiler.
> >>
> >> Ahha !
> >>
> >> > Macros defined by the system headers are the most likely cause of the
> >> problem. Windows headers are very unclean and its pre-processor
> >> definitions
> >> often overwrite user code.
> >>
> >> Well, how about this ?  Can Bart get hold of a slightly old version of
> >> SQLite — one which he originally compiled without problems and see
> whether
> >> he can still compile it ?
> >>
> >> If he can’t, the compiler changed.  If he can, then a diff between old
> and
> >> new source code should help to identify the problem.
> >>
> >> Simon.
> >> ___
> >> 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
> >
>
>
> --
> 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


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Richard Hipp
On 2/14/17, Bart Smissaert  wrote:
> I just tried with an old 3.11.1 and got different errors:

When did a "potentially uninitialized variable" become an error rather
than a warning?

This is important because MSVC is notoriously bad about overestimating
the chances of a variable being used uninitialized.

>
> Error 1 error C4703: potentially uninitialized local pointer variable
> 'pDbPage' used c:\program files (x86)\microsoft visual studio
> 12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 57565 1 SQLite
> Error 2 error C4703: potentially uninitialized local pointer variable
> 'pDbPage' used c:\program files (x86)\microsoft visual studio
> 12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 57498 1 SQLite
> Error 3 error C4703: potentially uninitialized local pointer variable
> 'pDbPage' used c:\program files (x86)\microsoft visual studio
> 12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 56552 1 SQLite
> Error 4 error C4703: potentially uninitialized local pointer variable
> 'pPage' used c:\program files (x86)\microsoft visual studio
> 12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 49637 1 SQLite
> Error 5 error C4703: potentially uninitialized local pointer variable
> 'pPgHdr' used c:\program files (x86)\microsoft visual studio
> 12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 50675 1 SQLite
> Error 6 error C4703: potentially uninitialized local pointer variable
> 'pPgHdr' used c:\program files (x86)\microsoft visual studio
> 12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 49804 1 SQLite
> Error 7 error C4703: potentially uninitialized local pointer variable
> 'pDbPage' used c:\program files (x86)\microsoft visual studio
> 12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 60186 1 SQLite
> Error 8 error C4703: potentially uninitialized local pointer variable
> 'pOvflPage' used c:\program files (x86)\microsoft visual studio
> 12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 64506 1 SQLite
> Error 9 error C4703: potentially uninitialized local pointer variable
> 'pSrcPg' used c:\program files (x86)\microsoft visual studio
> 12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 65695 1 SQLite
> Error 10 error C4703: potentially uninitialized local pointer variable
> 'pPg' used c:\program files (x86)\microsoft visual studio
> 12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 65795 1 SQLite
> Error 11 error LNK1257: code generation failed C:\Program Files
> (x86)\Microsoft Visual Studio
> 12.0\VC\vcprojects\Win32\SQLite\3_11_1\SQLite\SQLite\LINK SQLite
>
> RBS
>
> On Tue, Feb 14, 2017 at 10:30 PM, Simon Slavin  wrote:
>
>>
>> On 14 Feb 2017, at 10:27pm, Bob Friesenhahn 
>> wrote:
>>
>> > On Tue, 14 Feb 2017, Simon Slavin wrote:
>> >>
>> >> There’s always the chance that your copy of VC (or its compiler) got
>> corrupted somehow.
>> >
>> > I think that this compiler uses a rolling release model so not everyone
>> is using the same "MSVS 12" compiler.
>>
>> Ahha !
>>
>> > Macros defined by the system headers are the most likely cause of the
>> problem. Windows headers are very unclean and its pre-processor
>> definitions
>> often overwrite user code.
>>
>> Well, how about this ?  Can Bart get hold of a slightly old version of
>> SQLite — one which he originally compiled without problems and see whether
>> he can still compile it ?
>>
>> If he can’t, the compiler changed.  If he can, then a diff between old and
>> new source code should help to identify the problem.
>>
>> Simon.
>> ___
>> 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
>


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


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Bart Smissaert
Yes it looks it is a change in MSVS that is causing this trouble.
Not sure now reinstalling is that simple with licensing etc.

RBS

On Tue, Feb 14, 2017 at 10:49 PM, Simon Slavin  wrote:

>
> On 14 Feb 2017, at 10:47pm, Bart Smissaert 
> wrote:
>
> > I just tried with an old 3.11.1 and got different errors:
>
> And if I understand what you wrote earlier, when 3.11.1 came out you were
> able to compile it without problems.
>
> So you seem to have isolated your problem to a change in your compiler
> setup, rather than a change in SQLite.
>
> Might have changed some configuration setting for the compiler.  Or
> perhaps the compiler itself has got corrupt and you need to reinstall it.
>
> Simon.
> ___
> 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


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Bart Smissaert
I tried both with and without that backslash.
No difference.

RBS

On Tue, Feb 14, 2017 at 10:34 PM, Daniel Anderson  wrote:

> There is no \ at the end of the code which was pasted.
>
> did you removed them from the source ?
>
> the error look related to that problem.
>
> my .02 $
>
> 2017-02-14 17:20 GMT-05:00 Simon Slavin :
>
> >
> > On 14 Feb 2017, at 10:15pm, Bart Smissaert 
> > wrote:
> >
> > > The strange thing is that nil changed other than moving from version
> > 3.16.2
> > > to 3.17.0.
> > > There is no serious problem as I can compile on the other PC, but would
> > > like to figure out what is going on here.
> > > Will see if I can look at the pre-processor output.
> >
> > There’s always the chance that your copy of VC (or its compiler) got
> > corrupted somehow.
> >
> > Simon.
> > ___
> > sqlite-users mailing list
> > sqlite-users@mailinglists.sqlite.org
> > http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
> >
>
>
>
> --
> Daniel
> *L'action accède à la perfection quand, bien que vivant, vous êtes déjà
> mort*
> *Bunan*
> ___
> 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


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Simon Slavin

On 14 Feb 2017, at 10:47pm, Bart Smissaert  wrote:

> I just tried with an old 3.11.1 and got different errors:

And if I understand what you wrote earlier, when 3.11.1 came out you were able 
to compile it without problems.

So you seem to have isolated your problem to a change in your compiler setup, 
rather than a change in SQLite.

Might have changed some configuration setting for the compiler.  Or perhaps the 
compiler itself has got corrupt and you need to reinstall it.

Simon.
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Bart Smissaert
I just tried with an old 3.11.1 and got different errors:

Error 1 error C4703: potentially uninitialized local pointer variable
'pDbPage' used c:\program files (x86)\microsoft visual studio
12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 57565 1 SQLite
Error 2 error C4703: potentially uninitialized local pointer variable
'pDbPage' used c:\program files (x86)\microsoft visual studio
12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 57498 1 SQLite
Error 3 error C4703: potentially uninitialized local pointer variable
'pDbPage' used c:\program files (x86)\microsoft visual studio
12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 56552 1 SQLite
Error 4 error C4703: potentially uninitialized local pointer variable
'pPage' used c:\program files (x86)\microsoft visual studio
12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 49637 1 SQLite
Error 5 error C4703: potentially uninitialized local pointer variable
'pPgHdr' used c:\program files (x86)\microsoft visual studio
12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 50675 1 SQLite
Error 6 error C4703: potentially uninitialized local pointer variable
'pPgHdr' used c:\program files (x86)\microsoft visual studio
12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 49804 1 SQLite
Error 7 error C4703: potentially uninitialized local pointer variable
'pDbPage' used c:\program files (x86)\microsoft visual studio
12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 60186 1 SQLite
Error 8 error C4703: potentially uninitialized local pointer variable
'pOvflPage' used c:\program files (x86)\microsoft visual studio
12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 64506 1 SQLite
Error 9 error C4703: potentially uninitialized local pointer variable
'pSrcPg' used c:\program files (x86)\microsoft visual studio
12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 65695 1 SQLite
Error 10 error C4703: potentially uninitialized local pointer variable
'pPg' used c:\program files (x86)\microsoft visual studio
12.0\vc\vcprojects\win32\sqlite\3_11_1\sqlite3.c 65795 1 SQLite
Error 11 error LNK1257: code generation failed C:\Program Files
(x86)\Microsoft Visual Studio
12.0\VC\vcprojects\Win32\SQLite\3_11_1\SQLite\SQLite\LINK SQLite

RBS

On Tue, Feb 14, 2017 at 10:30 PM, Simon Slavin  wrote:

>
> On 14 Feb 2017, at 10:27pm, Bob Friesenhahn 
> wrote:
>
> > On Tue, 14 Feb 2017, Simon Slavin wrote:
> >>
> >> There’s always the chance that your copy of VC (or its compiler) got
> corrupted somehow.
> >
> > I think that this compiler uses a rolling release model so not everyone
> is using the same "MSVS 12" compiler.
>
> Ahha !
>
> > Macros defined by the system headers are the most likely cause of the
> problem. Windows headers are very unclean and its pre-processor definitions
> often overwrite user code.
>
> Well, how about this ?  Can Bart get hold of a slightly old version of
> SQLite — one which he originally compiled without problems and see whether
> he can still compile it ?
>
> If he can’t, the compiler changed.  If he can, then a diff between old and
> new source code should help to identify the problem.
>
> Simon.
> ___
> 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


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread David Empson
My thinking is that something before line 27461 in sqlite3.c which changed 
between versions 3.16.2 and 3.17.0 has bumped into a conflict with something 
defined for your compiler on that computer (e.g. from a Windows header file).

If so, you should still be able to compile 3.16.2, which you can download from 
whichever of these links you need:

https://www.sqlite.org/2017/sqlite-amalgamation-3160200.zip
https://www.sqlite.org/2017/sqlite-autoconf-3160200.tar.gz

> On 15/02/2017, at 11:15 AM, Bart Smissaert  wrote:
> 
> The strange thing is that nil changed other than moving from version 3.16.2
> to 3.17.0.
> There is no serious problem as I can compile on the other PC, but would
> like to figure out what is going on here.
> Will see if I can look at the pre-processor output.
> 
> RBS
> 
> 
> On Tue, Feb 14, 2017 at 10:07 PM, David Empson 
> wrote:
> 
>>> On 15/02/2017, at 10:23 AM, Bart Smissaert 
>> wrote:
>>> 
>>> -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
>> 
>> 
>> A clue which might help: the error output shows a constant stream of
>> problems starting at line 27461, which is in the function just after the
>> first use of SQLITE_SKIP_UTF8, in sqlite3Utf8CharLen(), on line 27418. The
>> errors reported for lines 16114 and 16117 (in the definition of that macro)
>> are probably related to the expansion of that macro, not its definition,
>> and the compiler has got lost after line 27418, resulting in cascading
>> errors.
>> 
>> I had a quick look at the raw hex data of my expansion of the autoconf
>> copy of sqlite3.c and I can’t see anything around the macro definition or
>> expansion which looks like it might confuse a C compiler. Line endings are
>> 0x0A (LF, UNIX \n) and everything appears to be ASCII.
>> 
>> As it seems this is only happening on one computer for one person, and
>> assuming the source file is not a bad copy on that computer, I’d suspect
>> the compiler installation or perhaps some configuration for the compiler
>> which is not overridden by the makefile, which is resulting in abnormal
>> behaviour (e.g. it may have a nonstandard include search path, or some
>> extra preprocessor symbols defined).
>> 
>> If reinstalling the compiler doesn’t help, perhaps have a look at the
>> preprocessor output to see what it is actually trying to compile around
>> source line 27418?
>> 
>> ___
>> 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

-- 
David Empson
demp...@emptech.co.nz

___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Daniel Anderson
There is no \ at the end of the code which was pasted.

did you removed them from the source ?

the error look related to that problem.

my .02 $

2017-02-14 17:20 GMT-05:00 Simon Slavin :

>
> On 14 Feb 2017, at 10:15pm, Bart Smissaert 
> wrote:
>
> > The strange thing is that nil changed other than moving from version
> 3.16.2
> > to 3.17.0.
> > There is no serious problem as I can compile on the other PC, but would
> > like to figure out what is going on here.
> > Will see if I can look at the pre-processor output.
>
> There’s always the chance that your copy of VC (or its compiler) got
> corrupted somehow.
>
> Simon.
> ___
> sqlite-users mailing list
> sqlite-users@mailinglists.sqlite.org
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
>



-- 
Daniel
*L'action accède à la perfection quand, bien que vivant, vous êtes déjà
mort*
*Bunan*
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Simon Slavin

On 14 Feb 2017, at 10:27pm, Bob Friesenhahn  
wrote:

> On Tue, 14 Feb 2017, Simon Slavin wrote:
>> 
>> There’s always the chance that your copy of VC (or its compiler) got 
>> corrupted somehow.
> 
> I think that this compiler uses a rolling release model so not everyone is 
> using the same "MSVS 12" compiler.

Ahha !

> Macros defined by the system headers are the most likely cause of the 
> problem. Windows headers are very unclean and its pre-processor definitions 
> often overwrite user code.

Well, how about this ?  Can Bart get hold of a slightly old version of SQLite — 
one which he originally compiled without problems and see whether he can still 
compile it ?

If he can’t, the compiler changed.  If he can, then a diff between old and new 
source code should help to identify the problem.

Simon.
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Bob Friesenhahn

On Tue, 14 Feb 2017, Simon Slavin wrote:


There’s always the chance that your copy of VC (or its compiler) got corrupted 
somehow.


I think that this compiler uses a rolling release model so not 
everyone is using the same "MSVS 12" compiler.


Macros defined by the system headers are the most likely cause of the 
problem.  Windows headers are very unclean and its pre-processor 
definitions often overwrite user code.


Bob
--
Bob Friesenhahn
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,http://www.GraphicsMagick.org/
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Simon Slavin

On 14 Feb 2017, at 10:15pm, Bart Smissaert  wrote:

> The strange thing is that nil changed other than moving from version 3.16.2
> to 3.17.0.
> There is no serious problem as I can compile on the other PC, but would
> like to figure out what is going on here.
> Will see if I can look at the pre-processor output.

There’s always the chance that your copy of VC (or its compiler) got corrupted 
somehow.

Simon.
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Bart Smissaert
The strange thing is that nil changed other than moving from version 3.16.2
to 3.17.0.
There is no serious problem as I can compile on the other PC, but would
like to figure out what is going on here.
Will see if I can look at the pre-processor output.

RBS


On Tue, Feb 14, 2017 at 10:07 PM, David Empson 
wrote:

> > On 15/02/2017, at 10:23 AM, Bart Smissaert 
> wrote:
> >
> > -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
>
>
> A clue which might help: the error output shows a constant stream of
> problems starting at line 27461, which is in the function just after the
> first use of SQLITE_SKIP_UTF8, in sqlite3Utf8CharLen(), on line 27418. The
> errors reported for lines 16114 and 16117 (in the definition of that macro)
> are probably related to the expansion of that macro, not its definition,
> and the compiler has got lost after line 27418, resulting in cascading
> errors.
>
> I had a quick look at the raw hex data of my expansion of the autoconf
> copy of sqlite3.c and I can’t see anything around the macro definition or
> expansion which looks like it might confuse a C compiler. Line endings are
> 0x0A (LF, UNIX \n) and everything appears to be ASCII.
>
> As it seems this is only happening on one computer for one person, and
> assuming the source file is not a bad copy on that computer, I’d suspect
> the compiler installation or perhaps some configuration for the compiler
> which is not overridden by the makefile, which is resulting in abnormal
> behaviour (e.g. it may have a nonstandard include search path, or some
> extra preprocessor symbols defined).
>
> If reinstalling the compiler doesn’t help, perhaps have a look at the
> preprocessor output to see what it is actually trying to compile around
> source line 27418?
>
> ___
> 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


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread David Empson
> On 15/02/2017, at 10:23 AM, Bart Smissaert  wrote:
> 
> -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


A clue which might help: the error output shows a constant stream of problems 
starting at line 27461, which is in the function just after the first use of 
SQLITE_SKIP_UTF8, in sqlite3Utf8CharLen(), on line 27418. The errors reported 
for lines 16114 and 16117 (in the definition of that macro) are probably 
related to the expansion of that macro, not its definition, and the compiler 
has got lost after line 27418, resulting in cascading errors.

I had a quick look at the raw hex data of my expansion of the autoconf copy of 
sqlite3.c and I can’t see anything around the macro definition or expansion 
which looks like it might confuse a C compiler. Line endings are 0x0A (LF, UNIX 
\n) and everything appears to be ASCII.

As it seems this is only happening on one computer for one person, and assuming 
the source file is not a bad copy on that computer, I’d suspect the compiler 
installation or perhaps some configuration for the compiler which is not 
overridden by the makefile, which is resulting in abnormal behaviour (e.g. it 
may have a nonstandard include search path, or some extra preprocessor symbols 
defined).

If reinstalling the compiler doesn’t help, perhaps have a look at the 
preprocessor output to see what it is actually trying to compile around source 
line 27418?

___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Marc L. Allen
This is a total shot in the dark... but something with line endings (\r, \n, 
\r\n, etc.) messing up the

#define blah \

Or other things?

-Original Message-
From: sqlite-users [mailto:sqlite-users-boun...@mailinglists.sqlite.org] On 
Behalf Of Drago, William @ CSG - NARDA-MITEQ
Sent: Tuesday, February 14, 2017 4:49 PM
To: SQLite mailing list <sqlite-users@mailinglists.sqlite.org>
Subject: Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

> -Original Message-
> From: sqlite-users 
> [mailto:sqlite-users-boun...@mailinglists.sqlite.org] On Behalf Of 
> Bart Smissaert
> Sent: Tuesday, February 14, 2017 4:24 PM
> To: SQLite mailing list <sqlite-users@mailinglists.sqlite.org>
> Subject: Re: [sqlite] Problem compiling 3.17.0 in MSVS 12
>
> 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.

Maybe the source file is corrupt on the machine with the errors.
--
Bill Drago
Staff Engineer
L3 Narda-MITEQ
435 Moreland Road
Hauppauge, NY 11788
631-272-5947 / william.dr...@l3t.com


CONFIDENTIALITY, EXPORT CONTROL AND DISCLAIMER NOTE:This e-mail and any 
attachments are solely for the use of the addressee and may contain information 
that is privileged or confidential. Any disclosure, use or distribution of the 
information contained herein is prohibited. In the event this e-mail contains 
technical data within the definition of the International Traffic in Arms 
Regulations or Export Administration Regulations, it is subject to the export 
control laws of the U.S.Government. The recipient should check this e-mail and 
any attachments for the presence of viruses as L-3 does not accept any 
liability associated with the transmission of this e-mail. If you have received 
this communication in error, please notify the sender by reply e-mail and 
immediately delete this message and any attachments.

Effective immediately my new email address is william.dr...@l3t.com. Please 
update your records.
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

�߉ק�&��ܧ�؜y8b�隊X��{^�ם��^�'�����az)݊hܭ�br��ƝvZ�ٚ��'w��f���텫b��覸���港�W�y�(�'~'^�ؚ���驵���جrZ,׫j�e�ƛ��Z��i׫�^�{^�ם��"�'���ځ)�{"nW���^�+ޮ)���z���h���קu�kyȩ���ʋ���^�b~'���j|����)ڶ*'v+-�&��*'��(�(�+�i��'�*'��-�'-�*k���ם!����z��z+�v�b��&���q�b�x�z�讙^jǧ�؟��^���ze�隊Z+r�ey�mzWq�ejw]zW�z��z�k�&���)��(~�b�隊Y��Ơy�����ƥr�bzɚu���zf��g���jw��y�mi�fz{l___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Drago, William @ CSG - NARDA-MITEQ
> -Original Message-
> From: sqlite-users [mailto:sqlite-users-boun...@mailinglists.sqlite.org] On
> Behalf Of Bart Smissaert
> Sent: Tuesday, February 14, 2017 4:24 PM
> To: SQLite mailing list <sqlite-users@mailinglists.sqlite.org>
> Subject: Re: [sqlite] Problem compiling 3.17.0 in MSVS 12
>
> 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.

Maybe the source file is corrupt on the machine with the errors.
--
Bill Drago
Staff Engineer
L3 Narda-MITEQ
435 Moreland Road
Hauppauge, NY 11788
631-272-5947 / william.dr...@l3t.com


CONFIDENTIALITY, EXPORT CONTROL AND DISCLAIMER NOTE:This e-mail and any 
attachments are solely for the use of the addressee and may contain information 
that is privileged or confidential. Any disclosure, use or distribution of the 
information contained herein is prohibited. In the event this e-mail contains 
technical data within the definition of the International Traffic in Arms 
Regulations or Export Administration Regulations, it is subject to the export 
control laws of the U.S.Government. The recipient should check this e-mail and 
any attachments for the presence of viruses as L-3 does not accept any 
liability associated with the transmission of this e-mail. If you have received 
this communication in error, please notify the sender by reply e-mail and 
immediately delete this message and any attachments.

Effective immediately my new email address is william.dr...@l3t.com. Please 
update your records.
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Bart Smissaert
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-317

C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\vcprojects\Win32\SQLite\s
qlite-autoconf-317>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-317>(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

Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Richard Hipp
On 2/14/17, Bart Smissaert  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


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Bart Smissaert
I am not modifying anything in the source, but I compile with Calling
convention: __stdcall (/Gz)
as I use the .dll for a VB6 ActiveX dll.

I am compiling directly from the VS interface, so via the Build tab and
then Rebuild.
This always worked fine. I just tried with the smaller file:
sqlite-amalgamation-317.zip

and same problem.

Should I compile with nmake instead?
Where should I type that?

Thanks for the assistance.

RBS


On Tue, Feb 14, 2017 at 7:05 PM, Richard Hipp  wrote:

> On 2/14/17, Bart Smissaert  wrote:
> > The problem seems to be with a #define followed by a opening curly brace,
> > also for example:
> > #define WRITE_UTF8(zOut, c) { \
> > at line 27227
> >
> > Could it be that VS needs some setting to recognize this construction?
> >
>
> Why does it work for me when I type:
>
> nmake /f makefile.msc
>
> Are you modifying the source file or the makefile.msc in some way?
> --
> 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


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Richard Hipp
On 2/14/17, Bart Smissaert  wrote:
> The problem seems to be with a #define followed by a opening curly brace,
> also for example:
> #define WRITE_UTF8(zOut, c) { \
> at line 27227
>
> Could it be that VS needs some setting to recognize this construction?
>

Why does it work for me when I type:

nmake /f makefile.msc

Are you modifying the source file or the makefile.msc in some way?
-- 
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


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Bart Smissaert
The problem seems to be with a #define followed by a opening curly brace,
also for example:
#define WRITE_UTF8(zOut, c) { \
at line 27227

Could it be that VS needs some setting to recognize this construction?

 RBS





On Tue, Feb 14, 2017 at 3:32 PM, Simon Slavin  wrote:

>
> On 14 Feb 2017, at 3:06pm, Bart Smissaert 
> wrote:
>
> > Yes, didn't expect this was reproducible.
> > All I can think of is that somehow MSVS doesn't recognize this now as C
> > code.
> > Must be one of the settings in VS that has somehow changed.
>
> Well, I’m not a C whiz, but that code looks like legal C.
>
> Is the VC compiler a C++ compiler ?  I’ve seen problems before from
> compilers which tried to compile SQLite source code files (.c files) as if
> they were C++ files (.cpp files).  The biggest problem here was that the
> errors they indicated were at the 'wrong' place, sometimes even in the
> 'wrong' files, because most C is legal C++.
>
> Simon.
> ___
> 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


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Bart Smissaert
There is a setting in VS and that says compile as C code.
Will start from scratch and make a new VS solution.

RBS



On Tue, Feb 14, 2017 at 3:32 PM, Simon Slavin  wrote:

>
> On 14 Feb 2017, at 3:06pm, Bart Smissaert 
> wrote:
>
> > Yes, didn't expect this was reproducible.
> > All I can think of is that somehow MSVS doesn't recognize this now as C
> > code.
> > Must be one of the settings in VS that has somehow changed.
>
> Well, I’m not a C whiz, but that code looks like legal C.
>
> Is the VC compiler a C++ compiler ?  I’ve seen problems before from
> compilers which tried to compile SQLite source code files (.c files) as if
> they were C++ files (.cpp files).  The biggest problem here was that the
> errors they indicated were at the 'wrong' place, sometimes even in the
> 'wrong' files, because most C is legal C++.
>
> Simon.
> ___
> 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


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Bart Smissaert
Yes, didn't expect this was reproducible.
All I can think of is that somehow MSVS doesn't recognize this now as C
code.
Must be one of the settings in VS that has somehow changed.

RBS

On Tue, Feb 14, 2017 at 2:18 PM, Richard Hipp  wrote:

> On 2/13/17, Bart Smissaert  wrote:
> > Downloaded the latest 3.17.0 (sqlite-autoconf-317.tar.gz
> > ) and
> replaced
> > my old 3.16.2 sqlite3.c file in the VC. Now for some reason I get lots of
> > errors when building a Windows dll.
> > First one is at line 16116 in this code block:
> >
> > #define SQLITE_SKIP_UTF8(zIn) {
> >   if( (*(zIn++))>=0xc0 ){
> > while( (*zIn & 0xc0)==0x80 ){ zIn++; }
> >   }
> > }
> >
> > Error 1 error C2059: syntax error : 'while'
> > Line 16116 is actually the one after the line with while.
>
> I'm not able to reproduce this problem.
>
> --
> 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


Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Richard Hipp
On 2/13/17, Bart Smissaert  wrote:
> Downloaded the latest 3.17.0 (sqlite-autoconf-317.tar.gz
> ) and replaced
> my old 3.16.2 sqlite3.c file in the VC. Now for some reason I get lots of
> errors when building a Windows dll.
> First one is at line 16116 in this code block:
>
> #define SQLITE_SKIP_UTF8(zIn) {
>   if( (*(zIn++))>=0xc0 ){
> while( (*zIn & 0xc0)==0x80 ){ zIn++; }
>   }
> }
>
> Error 1 error C2059: syntax error : 'while'
> Line 16116 is actually the one after the line with while.

I'm not able to reproduce this problem.

-- 
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] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Bart Smissaert
Downloaded the latest 3.17.0 (sqlite-autoconf-317.tar.gz) and replaced
my old 3.16.2 sqlite3.c file in the VC. Now for some reason I get lots of
errors when building a Windows dll.

First one is at line 16116 in this code block:

#define SQLITE_SKIP_UTF8(zIn) {
  if( (*(zIn++))>=0xc0 ){
while( (*zIn & 0xc0)==0x80 ){ zIn++; }
  }
}
Error 1 error C2059: syntax error : 'while'
Line 16116 is actually the one after the line with while.

Have updated to newer versions many times before any seen any problem like
this.
I am sure I must be overlooking something simple, but just can't see it.
Any suggestions?

RBS

(I posted this already before, yesterday, but it didn't appear in the list
for some reason)
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


[sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-13 Thread Bart Smissaert
Downloaded the latest 3.17.0 (sqlite-autoconf-317.tar.gz
) and replaced
my old 3.16.2 sqlite3.c file in the VC. Now for some reason I get lots of
errors when building a Windows dll.
First one is at line 16116 in this code block:

#define SQLITE_SKIP_UTF8(zIn) {
  if( (*(zIn++))>=0xc0 ){
while( (*zIn & 0xc0)==0x80 ){ zIn++; }
  }
}

Error 1 error C2059: syntax error : 'while'
Line 16116 is actually the one after the line with while.

Have updated to newer versions many times before any seen any problem like
this.
I am sure I must be overlooking something simple, but just can't see it.
Any suggestions?


RBS
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users