Re: [ILUG-BOM] Sqlite3 linking problem

2007-01-16 Thread Siddhesh Poyarekar

On 1/15/07, neelam [EMAIL PROTECTED] wrote:

thnx dinesh  and siddhesh ..
  u r right ... i dont have the sqlite3 - devel package installed on my system 
 wht i do for this ?  ( but i dont get any warnings even after using -Wall 
option ) .. still the error comes as invalid operation when linked with sqlite3 
lib


If you have warnings saying 'implicit declaration of function' then
you do not have sqlite3 dev package installed. Simply search for
libsqlite3 in your package manager. You'll find two packages; one
called libsqlite3 and the other called either libsqlite3-dev or
libsqlite3-devel depending on your distro. The dev/devel package is
what you need to install. Then follow Dinesh's instructions to install
the package.


Regards,
--
Siddhesh Poyarekar
http://siddhesh.tk

--
http://mm.glug-bom.org/mailman/listinfo/linuxers


Re: [ILUG-BOM] Sqlite3 linking problem

2007-01-15 Thread Dinesh Joshi
On Monday 15 January 2007 10:45, neelam wrote:
 thnx dinesh  and siddhesh ..
   u r right ... i dont have the sqlite3 - devel package installed on
 my system  wht i do for this ?  ( but i dont get any warnings
 even after using -Wall option ) .. still the error comes as invalid
 operation when linked with sqlite3 lib

Please format your message properly the next time. It becomes a bit 
difficult to understand. Anyway, getting back to your question, 
installation of sqlite devel library depends on your distribution. Here 
are a few commands for common distributions: 

Fedora:
yum install sqlite-devel
rpm -ivh [RPM FILE NAME]

Debian or debian based distros ( Ubuntu, KUbuntu etc... ):
apt-get install sqlite-devel
dpkg ( i'm not sure of the syntax )

-- 
Regards,
Dinesh A. Joshi

-- 
http://mm.glug-bom.org/mailman/listinfo/linuxers


Re: [ILUG-BOM] Sqlite3 linking problem

2007-01-14 Thread neelam


  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

thnx dinesh  and siddhesh ..
  u r right ... i dont have the sqlite3 - devel package installed on my system 
 wht i do for this ?  ( but i dont get any warnings even after using -Wall 
option ) .. still the error comes as invalid operation when linked with sqlite3 
lib

-- 
Regards,
Dinesh A. Joshi

-- 
http://mm.glug-bom.org/mailman/listinfo/linuxers


 
-
The fish are biting.
 Get more visitors on your site using Yahoo! Search Marketing.
-- 
http://mm.glug-bom.org/mailman/listinfo/linuxers


[ILUG-BOM] Sqlite3 linking problem

2007-01-12 Thread neelam
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 .
   
   
   
   
   
   

 
-
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel 
bargains.
-- 
http://mm.glug-bom.org/mailman/listinfo/linuxers


Re: [ILUG-BOM] Sqlite3 linking problem

2007-01-12 Thread Siddhesh Poyarekar

On 1/12/07, neelam [EMAIL PROTECTED] wrote:

  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


Check whether you get warnings saying that the sqlite3 functions are
implicitly declared. If yes then you probably don't have
libsqlite3-dev installed.Also, confirm whether you're using sqlite
functions or sqlite3 functions. They're not interchangeable.


Regards,
--
Siddhesh Poyarekar
http://siddhesh.tk

--
http://mm.glug-bom.org/mailman/listinfo/linuxers


Re: [ILUG-BOM] Sqlite3 linking problem

2007-01-12 Thread Dinesh Joshi
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


-- 
Regards,
Dinesh A. Joshi

-- 
http://mm.glug-bom.org/mailman/listinfo/linuxers