On Friday 12 January 2007 17:30, neelam wrote:
Hi all,
I have used sqlite3 database engine for my C appln . my C program (first.c )simply opens database , creates tables and closes database. I have confirmed the presence of sqlite3 librarries on my system at /usr/lib/
my compliation option is : gcc first.c -lsqlite3 and then i get a compln error as path to sqlite3 lib - could not read symbols :Invalid operation ld returned with exit status 1
Can any one help me to sort out this ? it will b of great help to me ......... Thanx .....
1. Compile like this: gcc first.c -lsqlite3 -Wall
This will enable all warnings. Will help you find out what may be wrong.
2. You need to check if you have the dev libraries installed or not. To do this you need to check if sqlite-devel package is installed on your system. This is distribution specific. Incase of redhat or its derivatives I would just simple do:
rpm -qa | grep devel | grep sql
this will list all devel packages with sql in it =P