dark0s dark0s wrote:
> sqlite3.c is not present in the system
> 
> I type
> 
> gcc  CreaDB.c  sqlite3.c  -o CreaDB
> 
> but after I don't find CreaDB also in my system.
> 

You mentioned earlier that you are new to SQLite, but it seems you are 
new to C programming as well.  The following assumes you are working on 
some variant of UN*X.

What did you download from http://www.sqlite.org/download.html ? 
sqlite-3.5.7.so.gz, or sqlite-amalgamation-3.5.7.tar.gz?

If you have sqlite-3.5.7.so.gz, you need to use gzip to unpack it, 
giving you the sqlite-3.5.7.so.  Copy it into /usr/local/lib for 
convenience (cp sqlite-3.5.7 /usr/local/lib/libsqlite.so); I'm assuming 
you can be root and copy it there.  When you compile your application, 
the command should look like

gcc -lsqlite CreaDB.c -o CreaDB

If you have the sqlite-amalgamation-3.5.7.tar.gz, you need to unroll the 
tarball somewhere (tar -zxf sqlite-amalgamation-3.5.7.tar.gz).  Then 
copy sqlite3.{h,c} to your source directory.  When you compile your 
application, the command should look like (as before):

gcc sqlite3.c CreaDB.c -o CreaDB

To get rid of the warning about strlen(), you need to add

#include <string.h>

and the warning about main can be ignored, but if you want to get rid of 
it, change it to the more standard

int main(int argc, char* argv[]) {

Might I suggest doing more work on learning how to use your development 
environment.  Good luck.

-- 
Glenn McAllister     <[EMAIL PROTECTED]>      +1 416 348 1594
SOMA Networks, Inc.  http://www.somanetworks.com/  +1 416 977 1414

   Asking a writer what he thinks about criticism is like asking a
   lamppost what it feels about dogs.
                                                     - John Osborne

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

Reply via email to