LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-31-2007, 02:41 AM   #1
zoobave
LQ Newbie
 
Registered: Jun 2007
Posts: 20

Rep: Reputation: 0
Arrow sqlite3_load_extension - reg


Hi,
I got the follwoing error while doing make. Is there any library to be loaded other than sqlite3?

Code:
/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2   -o foo main.o callbacks.o -L/usr/local/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0   -L/usr/local/lib -lmtp -lusb  -lsqlite3
gcc -g -O2 -o foo main.o callbacks.o  -L/usr/local/lib /usr/local/lib/libgtk-x11-2.0.so /usr/local/lib/libgdk-x11-2.0.so /usr/local/lib/libatk-1.0.so /usr/local/lib/libgdk_pixbuf-2.0.so -lm /usr/lib/libpangocairo-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libcairo.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so /usr/local/lib/libmtp.so /usr/lib/libusb.so /usr/local/lib/libsqlite3.so -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib
callbacks.o: In function `load_db':
/home/user/dvm/whatever-0.0.1/src/callbacks.c:1617: undefined reference to `sqlite3_load_extension'
/home/user/dvm/whatever-0.0.1/src/callbacks.c:1618: undefined reference to `sqlite3_enable_load_extension'
collect2: ld returned 1 exit status
make: *** [foo] Error 1

--

Regards,

Zoobave A
http://zoobave.blogspot.com/
 
Old 07-31-2007, 05:10 AM   #2
SybaseLu
LQ Newbie
 
Registered: May 2006
Posts: 9

Rep: Reputation: 0
do you have implemented the load_db function rather than just declared it?
 
Old 08-01-2007, 02:23 AM   #3
zoobave
LQ Newbie
 
Registered: Jun 2007
Posts: 20

Original Poster
Rep: Reputation: 0
ya, i have implemented
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HAL - reg zoobave Linux - Kernel 1 06-21-2007 05:44 AM
Open Reg Omer Fadul Linux - Networking 0 10-16-2006 05:11 AM
Nice surprise Kaffeine plays Reg 1 and Reg 2 disks 1kyle SUSE / openSUSE 1 10-10-2005 04:47 PM
reg starting up jigyasa65 Linux - General 1 09-23-2005 09:32 AM
reg spam anilchow Linux - Security 1 10-02-2003 06:05 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration