It's a trick to this.

If you do it correct you can compile sqlite3.c directly into any VC++
project - even CLR - no need for separate dll.

Just include the sqlite.c in your project and change the file's private
properties - set C compile, swith off pre-compiled header and make sure the
file compile as native if the project is CLR.

Took me 3 beers to remember how to do this :)

Jan 

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

Hello Jay,

I haven't found this to be the case. I have numerous C only library's
I compile and I don't have to change the defaults to compile them.
There is an option to force C++ compiles but, I don't believe it's on
by default.

JAK>   In most default setups, Visual Studio insists on compiling .c files
JAK>   with the C++ compiler, even though-- as this very example points
JAK>   out-- the languages are different enough that this behavior seems
JAK>   questionable.


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