On 29 Nov 2010, at 11:10pm, john darnell wrote:

> here's that first dumb-sounding question.
> 
> I got my boss to purchase an O'Reilly book called Using SQLite, and the 
> author makes a rather ominous statement:  "All of the SQLite source is 
> written in C...Make sure you use a vanilla C Compiler."
> 
> I just added it to a Visual Studio 8 project, turned off the use of 
> precompiled headers (the project is a C++ project) and compiled the SQLite.c 
> file without any errors.  Is it really that easy, or am I about ready to be 
> hit by a Mac truck filled with bugaboos?

That's not dumb, that's "I've been hurt before.".  But you should definitely 
use the command-line tool to make a database and see if your application can 
read it before you relax.

Portability is one of the main design criteria for SQLite.  Unlike most SQL 
engines you can find these days it needs to run not only on desktop computers 
but TVs, phones, and tiny little embedded controllers.  The simplest way to 
make that happen is to write it in C and make sure it compiles on anything with 
a C compiler available.  It's a handicap in some ways, since the programmers 
can't use even C++, but it means people developing for any new gadget tend to 
turn to SQLite.

And if it has to be compilable for a PVR/DVR a Wintel computer is no trouble at 
all.

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

Reply via email to