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

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

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

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

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

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

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

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

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

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

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.

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

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 >

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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,

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

Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-14 Thread Marc L. Allen
: 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 > Bar

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

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

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

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:

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

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:

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

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

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

[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 ){

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