May I suggest you don't use precompiled packages when they are not "official" 
(i.e., included in Slackware distribution) ones, but make your own packages.
Yuu can find Slackbuilds for sqlite-3.5.7 on slackbuild.org and salcky.eu 
websites for that purpose.

There is a typo in your command:
bash-3.1# gcc -llibsqlite3.so CreaDB.c -o CreaDB

should read :
bash-3.1# gcc -libsqlite3.so CreaDB.c -o CreaDB

Don't forget to add :
#include <string.h>
as menionned by Glenn McAllister

And may i suggest you compile your program as a standard user, not as root.

HTH,

Didier

Le Sunday 06 April 2008 00:10:30 [EMAIL PROTECTED], vous avez écrit :
>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?

I've installed sqlite-3.5.7 precompiled package on my slackware system. Below 
there is results of searches:

bash-3.1# find / -name sqlite3.c

bash-3.1# 

bash-3.1# find / -name sqlite3.h
/usr/include/seamonkey-1.1.2/sqlite3/sqlite3.h
/usr/include/sqlite3.h
bash-3.1# find / -name libsqlite3.so
/usr/lib/libsqlite3.so
bash-3.1# 

I try to compile:

bash-3.1# gcc -llibsqlite3.so CreaDB.c -o CreaDB
CreaDB.c: In function 'main':
CreaDB.c:21: warning: incompatible implicit declaration of built-in function 
'strlen'
CreaDB.c:5: warning: return type of 'main' is not 'int'
CreaDB.c:41:3: warning: no newline at end of file
/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../../i486-slackware-linux/bin/ld:
 cannot find -llibsqlite3.so
collect2: ld returned 1 exit status
bash-3.1# ls
CreaDB.c  Desktop  GNUstep  loadlin16c.txt




-- 
Didier Spaier
Gérant
EPSM
33 avenue Bosquet - 75007 PARIS
Tél. 01 45 51 03 26
Courriel [EMAIL PROTECTED]
Site http://epsm.fr
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to