1) I have downloaded the SQLite sqlite-3.3.7.so.gz and saved in the
desktop directory.

2) Then copied the sample C program from the quick start guide and saved
in a file. (given the name sqlite.c)
3) To get the sqlite3.h file, I downloaded the sqlite source.

 3.1) mkdir sqlite
 3.2) cd sqlite
 3.3) ../configure
 3.4) make
 
 After performing this section I got lots of errors. (I shall Add it at
the end of mail)

But when I browsed through the output directory, I found the sqlite3.h
file

copied that file too to mu desktop directory

then given the command


gcc sqlite.c -o sqlite 

it shown the following erorrs.....

[EMAIL PROTECTED] gcc sqlite.c  -o sqlite
/tmp/ccE2LJqr.o(.text+0xe1): In function `main':
: undefined reference to `sqlite3_open'
/tmp/ccE2LJqr.o(.text+0xfb): In function `main':
: undefined reference to `sqlite3_errmsg'
/tmp/ccE2LJqr.o(.text+0x11d): In function `main':
: undefined reference to `sqlite3_close'
/tmp/ccE2LJqr.o(.text+0x148): In function `main':
: undefined reference to `sqlite3_exec'
/tmp/ccE2LJqr.o(.text+0x178): In function `main':
: undefined reference to `sqlite3_free'
/tmp/ccE2LJqr.o(.text+0x186): In function `main':
: undefined reference to `sqlite3_close'
collect2: ld returned 1 exit status


So I tried this way...


 gcc -c sqlite.c -c 



thus got the sqlite.o file

then I executed the ldconfig command this way

ldconfig /root/Desktop/

then tried 


ld /root/Desktop/sqlite-3.3.7.so  /root/Desktop/sqlite.o

This too shown eorros..

[EMAIL PROTECTED] ld /root/Desktop/sqlite-3.3.7.so /root/Desktop/sqlite.o
ld: warning: cannot find entry symbol _start; defaulting to 080483d8



(And it seems from your reply this way wont work)



Here I am adding the error output of the make command... (I am not
installed TCL on my macine.. and it is not needed)



.../src/tclsqlite.c:20:17: tcl.h: No such file or directory
.../src/tclsqlite.c:54: error: syntax error before "Tcl_Interp"
.../src/tclsqlite.c:54: warning: no semicolon at end of struct or union
.../src/tclsqlite.c:55: warning: data definition has no type or storage
class
.../src/tclsqlite.c:59: error: syntax error before '}' token
.../src/tclsqlite.c:67: error: syntax error before "Tcl_Interp"
.../src/tclsqlite.c:67: warning: no semicolon at end of struct or union
.../src/tclsqlite.c:69: error: conflicting types for 'pNext'
.../src/tclsqlite.c:58: error: previous declaration of 'pNext' was here
.../src/tclsqlite.c:70: error: syntax error before '}' token
.../src/tclsqlite.c:92: error: syntax error before "Tcl_Interp"
.../src/tclsqlite.c:92: warning: no semicolon at end of struct or union
.../src/tclsqlite.c:101: error: syntax error before '*' token
.../src/tclsqlite.c:101: warning: data definition has no type or storage
class
.../src/tclsqlite.c:102: error: syntax error before '*' token
.../src/tclsqlite.c:102: warning: data definition has no type or storage
class
.../src/tclsqlite.c:105: error: syntax error before '*' token
.../src/tclsqlite.c:105: warning: data definition has no type or storage
class
.../src/tclsqlite.c:110: error: syntax error before '}' token
.../src/tclsqlite.c:124: error: syntax error before '*' token
.../src/tclsqlite.c: In function `safeToUseEvalObjv':
.../src/tclsqlite.c:131: error: `pCmd' undeclared (first use in this
function)
.../src/tclsqlite.c:131: error: (Each undeclared identifier is reported
only once
.../src/tclsqlite.c:131: error: for each function it appears in.)
.../src/tclsqlite.c:131: warning: assignment makes pointer from integer
without a cast
.../src/tclsqlite.c: In function `findSqlFunc':
.../src/tclsqlite.c:147: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:148: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:148: error: invalid use of undefined type `struct
SqlFunc'
.../src/tclsqlite.c:148: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:149: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:150: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:151: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:151: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type
.../src/tclsqlite.c:152: error: dereferencing pointer to incomplete type




and the error continues............


How can I resole this. Please help me...

Can I use the library alone without recompiling the whole sqlite? (Thus
it will be easier for me to distribute my application along with sqlite)


Thanks and regards,
  Lloyd. 







On Tue, 2006-09-26 at 07:52 -0400, Mark Richards wrote:
> To use the library, either in shared or static mode, you must first 
> build it successfully and then install it,
> 
> Please tell us your build procedure and any errors you got.
> 
> /m
> 
> Lloyd wrote:
> > 
> > then I tried to "make"  the file, but it failed,  any how I got the
> > necessary sqlite3.h file.
> > 
> > But still I don't know from where to download the sqlite library and
how
> > to install it in my machine. Awaiting for your kind reply.
> > 
> 
> 
>
-----------------------------------------------------------------------------
> To unsubscribe, send email to [EMAIL PROTECTED]
>
-----------------------------------------------------------------------------




______________________________________
Scanned and protected by Email scanner

-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------

Reply via email to