Linda,

I'm using the individual files to compile a static lib. Just create a
new project as a static lib. Unzip the source files into the project
folder and then add all the h and c files to the project. You'll have
to delete some but, you can figure that out when you compile.

SQLITE_CORE;
SQLITE_OMIT_AUTHORIZATION;
SQLITE_OMIT_AUTOVACUUM;
SQLITE_OMIT_BLOB_LITERAL;
SQLITE_OMIT_DATETIME_FUNCS;
SQLITE_OMIT_MEMORYDB;
SQLITE_OMIT_TRACE;
SQLITE_OMIT_CURSOR

These are defines I use when I compile.

I then include the lib project in my main project, set dependencies
so, it automatically links in the lib and manually include the new
project folder in my header search list.

"Add Existing Project" in the "Add" right click of the solution
explorer.

The amalgamation works but, you won't be able to single step in and
debug the lib if you use it. It's a limitation of the compiler.



C



Friday, October 29, 2010, 1:28:27 PM, you wrote:

SAM> I would suggest using the pre-compiled binary sqlite3.dll and just call
SAM> into the DLL.  You can easily create an import library to link with in
SAM> your application by using the LIB /DEF command:

SAM> lib /def:sqlite3.def

SAM> That will create sqlite3.lib and sqlite3.exp.  You can link against the
SAM> sqlite3.lib file and it will use the sqlite3.dll.

SAM> -Scott

SAM> sqlite-users-boun...@sqlite.org wrote on 10/29/2010 09:42:09 AM:

>> > I am trying to use sqlite in the debea database library.
>> > 
>> > http://debea.net/trac/wiki/CompileSvn
>> > 
>> > It simply says compile sqlite3.
>> > 
>> > I am however a VS2008 user.  I cannot find a way to compile it so I 
SAM> can
>> > reference the include and library directories.  Can you help?
>> > 
>> > Linda Rawson
>> 
>> Linda,
>> 
>> The only way that I know of to compile SQLite in VS 2008 is to use 
>> the amalgamation download.  You can find it here:  http://www.
>> sqlite.org/download.html.  This will be only a single .c file.
>> 
>> I'm not sure this will meet your needs if you need to reference the 
>> include folder.  You may need to explore building the TEA tarball. 
>> I've never tried it in windows, but it look like there is guidance 
>> on the TEA website http://www.tcl.tk/doc/tea/.
>> 
>> Has anyone tried this in Windows?
>> 
>> RW
>> 
>> Ron Wilson, Engineering Project Lead
>> (o) 434.455.6453, (m) 434.851.1612, www.harris.com
>> 
>> HARRIS CORPORATION   |   RF Communications Division 
>> assuredcommunications(tm)
>> _______________________________________________
>> sqlite-users mailing list
>> sqlite-users@sqlite.org
>> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

SAM> _______________________________________________
SAM> sqlite-users mailing list
SAM> sqlite-users@sqlite.org
SAM> 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

Reply via email to