LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-12-2006, 02:10 AM   #1
talent422
LQ Newbie
 
Registered: Jan 2006
Distribution: Fedora Core 4
Posts: 3

Rep: Reputation: 0
"Undefined reference to" error


Hello,

I have installed a library (http_fetcher), and the files reside in /usr/lib.

When I try to use the functions and compile my program, I get this output:
/home/dfisher/netcolada/src/netcolada.cpp:73: undefined reference to `http_perror(char const*)'

I am pretty sure I need to specify, somewhere (I'm using KDevelop), where my libary files are located, but I do not know how to do this. I've tried passing "-lhttp_fetcher" to the compiler but I still receive the same error...

Now, I've looked through LinuxQuestions.org for similiar threads, but I can't nail down the problem...any advice would be appreciated. I'm sure this is some little thing I've overlooked...

 
Old 01-12-2006, 06:51 PM   #2
zhy2111314
Member
 
Registered: Aug 2005
Location: China
Distribution: redhat(Fedora Core)->Debian Sid->Slackware
Posts: 91

Rep: Reputation: 15
After installing the library, did you run "ldconfig" to update the library in your system?
 
Old 01-13-2006, 03:19 PM   #3
talent422
LQ Newbie
 
Registered: Jan 2006
Distribution: Fedora Core 4
Posts: 3

Original Poster
Rep: Reputation: 0
Sure did. I even added the lib dirs to
/etc/ld.so.conf just to make sure they were captured. Maybe I'm calling
the fuction wrong?

Prototype in http_fetch: int http_fetch(const char *url, char **Filebuf);

How I use: checkerror = http_fetch(myurl, &myfilebuf);

There was an example program provided by the library creator, and it compiled just fine, so ther
e's some value I need to specify somewhere..I just have to find it...
 
  


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
Several "undefined reference to" error when compiling a C programm acer_peri Programming 8 12-11-2008 05:45 AM
"undefined reference"linker error for static field w/ C++ astorm Programming 5 08-27-2008 03:00 AM
Error: Make on kismet-2005-08-R1 "undefined reference" zeevolking Linux - Software 1 12-23-2005 08:40 PM
Kernel make bzImage error "undefined reference" w/ Prism2.5 USB driver under 2.6 joachimvb Mandriva 1 09-24-2004 07:43 PM
ncurses compile error: "undefined reference" Mr. Eek Linux From Scratch 1 05-12-2003 04:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:34 PM.

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