Quantcast

Problem compiling 3.17.0 in MSVS 12

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
42 messages Options
123
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Problem compiling 3.17.0 in MSVS 12

Bart Smissaert
Downloaded the latest 3.17.0 (sqlite-autoconf-3170000.tar.gz
<https://www.sqlite.org/2017/sqlite-autoconf-3170000.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
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem compiling 3.17.0 in MSVS 12

Richard Hipp-3
On 2/13/17, Bart Smissaert <[hidden email]> wrote:

> Downloaded the latest 3.17.0 (sqlite-autoconf-3170000.tar.gz
> <https://www.sqlite.org/2017/sqlite-autoconf-3170000.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
[hidden email]
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem compiling 3.17.0 in MSVS 12

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 <[hidden email]> wrote:

> On 2/13/17, Bart Smissaert <[hidden email]> wrote:
> > Downloaded the latest 3.17.0 (sqlite-autoconf-3170000.tar.gz
> > <https://www.sqlite.org/2017/sqlite-autoconf-3170000.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
> [hidden email]
> _______________________________________________
> sqlite-users mailing list
> [hidden email]
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
>
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem compiling 3.17.0 in MSVS 12

Simon Slavin-3

On 14 Feb 2017, at 3:06pm, Bart Smissaert <[hidden email]> 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
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem compiling 3.17.0 in MSVS 12

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 <[hidden email]> wrote:

>
> On 14 Feb 2017, at 3:06pm, Bart Smissaert <[hidden email]>
> 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
> [hidden email]
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
>
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem compiling 3.17.0 in MSVS 12

Bart Smissaert
In reply to this post by Simon Slavin-3
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 <[hidden email]> wrote:

>
> On 14 Feb 2017, at 3:06pm, Bart Smissaert <[hidden email]>
> 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
> [hidden email]
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
>
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem compiling 3.17.0 in MSVS 12

Richard Hipp-3
On 2/14/17, Bart Smissaert <[hidden email]> 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
[hidden email]
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem compiling 3.17.0 in MSVS 12

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-3170000.zip
<https://www.sqlite.org/2017/sqlite-amalgamation-3170000.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 <[hidden email]> wrote:

> On 2/14/17, Bart Smissaert <[hidden email]> 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
> [hidden email]
> _______________________________________________
> sqlite-users mailing list
> [hidden email]
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
>
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem compiling 3.17.0 in MSVS 12

Richard Hipp-3
On 2/14/17, Bart Smissaert <[hidden email]> 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
[hidden email]
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem compiling 3.17.0 in MSVS 12

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-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 <[hidden email]> wrote:

> On 2/14/17, Bart Smissaert <[hidden email]> 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
> [hidden email]
> _______________________________________________
> sqlite-users mailing list
> [hidden email]
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
>
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem compiling 3.17.0 in MSVS 12

Drago, William @ CSG - NARDA-MITEQ-2
> -----Original Message-----
> From: sqlite-users [mailto:[hidden email]] On
> Behalf Of Bart Smissaert
> Sent: Tuesday, February 14, 2017 4:24 PM
> To: SQLite mailing list <[hidden email]>
> 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 / [hidden email]


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 [hidden email]. Please update your records.
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem compiling 3.17.0 in MSVS 12

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:[hidden email]] On Behalf Of Drago, William @ CSG - NARDA-MITEQ
Sent: Tuesday, February 14, 2017 4:49 PM
To: SQLite mailing list <[hidden email]>
Subject: Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

> -----Original Message-----
> From: sqlite-users
> [mailto:[hidden email]] On Behalf Of
> Bart Smissaert
> Sent: Tuesday, February 14, 2017 4:24 PM
> To: SQLite mailing list <[hidden email]>
> 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 / [hidden email]


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 [hidden email]. Please update your records.
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

�߉ק�&��ܧ�؜y8b�隊X��{^�ם��^�'����az)݊����h���ܭ�br��Ɲv����Z�ٚ��'����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ǧ�؟��^���z���e�隊Z+r�ey�mzW����q�ejw]zW�z��z�k�&���)��(~�b�隊Y��Ơy����ƥr�bzɚu���zf��g���jw������y�mi�fz{l
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem compiling 3.17.0 in MSVS 12

David Empson
In reply to this post by Bart Smissaert
> On 15/02/2017, at 10:23 AM, Bart Smissaert <[hidden email]> 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
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem compiling 3.17.0 in MSVS 12

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 <[hidden email]>
wrote:

> > On 15/02/2017, at 10:23 AM, Bart Smissaert <[hidden email]>
> 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
> [hidden email]
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
>
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem compiling 3.17.0 in MSVS 12

Simon Slavin-3

On 14 Feb 2017, at 10:15pm, Bart Smissaert <[hidden email]> 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
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem compiling 3.17.0 in MSVS 12

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
[hidden email], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem compiling 3.17.0 in MSVS 12

Simon Slavin-3

On 14 Feb 2017, at 10:27pm, Bob Friesenhahn <[hidden email]> 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
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem compiling 3.17.0 in MSVS 12

Daniel Anderson
In reply to this post by Simon Slavin-3
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 <[hidden email]>:

>
> On 14 Feb 2017, at 10:15pm, Bart Smissaert <[hidden email]>
> 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
> [hidden email]
> 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
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem compiling 3.17.0 in MSVS 12

David Empson
In reply to this post by Bart Smissaert
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 <[hidden email]> 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 <[hidden email]>
> wrote:
>
>>> On 15/02/2017, at 10:23 AM, Bart Smissaert <[hidden email]>
>> 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
>> [hidden email]
>> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
>>
> _______________________________________________
> sqlite-users mailing list
> [hidden email]
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

--
David Empson
[hidden email]

_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem compiling 3.17.0 in MSVS 12

Bart Smissaert
In reply to this post by Simon Slavin-3
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 <[hidden email]> wrote:

>
> On 14 Feb 2017, at 10:27pm, Bob Friesenhahn <[hidden email]>
> 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
> [hidden email]
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
>
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
123
Loading...