Thanks 

I finally managed to compile it.

My challenge was that I am using a C++ project with default setting which
uses C++ compiler setting, but to allow old C features you need to set the
/TC option on the VC compiler - otherwise the typecasts are treated as
errors  etc. 

Jan

-----Original Message-----
From: sqlite-users-boun...@sqlite.org
[mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Teg
Sent: 8. mai 2011 13:30
To: General Discussion of SQLite Database
Subject: Re: [sqlite] Compile error's on Visual Studio 2010

Hello Jan,

Move it into it's own project, make it a static lib and turn down the
warning level just for this project. That's what I do anyway. I'm not
willing to touch the code but, that seems to be the only other
solution.


Sunday, May 8, 2011, 6:50:31 AM, you wrote:

JB> Hi,

JB>  

JB> I am new to sqlite3 and just downloaded the code trying to test it from
a
JB> C++ application using Visual Studio 2010. I just created a class and
JB> included the sqlite3.c and sqlite3.h from amalgamation-3070602 directly.

JB>  

JB> The header compiles fine, but on the sqlite3.c I get typecast errors.
This
JB> is because my compiler is set to a high warning level and sqlite3 code
does
JB> things like converting from void* to struct pointers. 

JB>  

JB> Is there any way I can get around this without lowering the compiler's
JB> warning level?

JB>  

JB> Jan

JB> _______________________________________________
JB> sqlite-users mailing list
JB> sqlite-users@sqlite.org
JB> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

-- 
Best regards,
 Teg                            mailto:t...@djii.com

_______________________________________________
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

Reply via email to