LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-02-2004, 04:14 AM   #1
otosigo
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Rep: Reputation: 0
Linking own library: undefined reference to


Hi everybody,

I have done a library (libIRController.so) which I use in a bigger project. When I compile this bigger project I get the following error:
/usr/lib/gcc-lib/i386-redhat-linux/3.3.3/../../../libIRController.so: undefined reference to `DBShowStatus()'.

Here are the steps I have follwed:
1)This function is defined in fileio.h and implemented in fileio.c. Then I have created a Qt class (IRCodeNormalizer) from where I call this function. Then I have other class that has an instance of IRCodeNormalizer. I compile the library and I get my libIRController.so* files.
2) I move this librarys to /usr/lib/
3)Then I go to the 'bigger project' and try to compile it, but get this link? error.
When I remove calls to DBShowStatus() in IRCodeNormalizer, everything compiles ok. But then I don't have the functionality I want

Any ideas?

PS: I can post the Makefile, the Qt .pro file and some code if necessary.

Thanks in advanced
 
Old 12-02-2004, 08:05 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
have you rerun ldconfig?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Shared Library error : undefined reference xs2harpreet Programming 6 03-11-2009 05:55 PM
gcc linking: undefined reference to just about everything shabbychef Programming 7 09-09-2005 08:42 PM
g++: inline functions can cause an undefined reference when linking? R00ts Programming 5 06-21-2005 03:13 AM
linking problems - 'undefined reference' errors back2morrie Programming 1 06-14-2005 08:02 AM
undefined reference to a function included in a library i made!!! keos Programming 5 02-21-2004 04:02 PM

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

All times are GMT -5. The time now is 01:47 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