> Maybe you somehow include a file that redefines 'not'? That's a brilliant idea. Just change "not" to "!" here:
> int not; /* True if the NOT keyword is present */ And after that I'm sure you'll see error saying > ..\Sources\sqlite3.c(107831) : error C2143: syntax error : missing ':' before > '!' Pavel On Fri, Mar 30, 2012 at 4:29 AM, Bert Huijben <b...@qqmail.nl> wrote: > > >> -----Original Message----- >> From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users- >> boun...@sqlite.org] On Behalf Of Marco Bambini >> Sent: vrijdag 30 maart 2012 9:52 >> To: General Discussion of SQLite Database >> Subject: [sqlite] Visual Studio 2008 Express and sqlite3.c >> >> I am trying to compile the latest sqlite 3.7.11 amalgamation C file within > a >> Visual Studio 2008 Express C++ project. >> sqlite3.c is correctly set as to be compiled as C code but I am unable to > find >> out a way to fix some compilation errors: >> >> Compiling... >> sqlite3.c >> ..\Sources\sqlite3.c(107831) : error C2143: syntax error : missing ':' > before '!' > > > Line 107831 is the 'int not' line in > > /* > ** An instance of this structure is used to store the LIKE, > ** GLOB, NOT LIKE, and NOT GLOB operators. > */ > struct LikeOp { > Token eOperator; /* "like" or "glob" or "regexp" */ > int not; /* True if the NOT keyword is present */ > }; > > In my version of sqlite3.c > > Can you make sure your file is not somehow corrupted? > (The next error is a reference to this structure). > > Maybe you somehow include a file that redefines 'not'? > > I can compile sqlite3.c with Visual C++ 2008 Professional (with all SPs) > without problems. > > Bert > > _______________________________________________ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users