LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 03-23-2005, 03:28 PM   #1
jonty_11
Member
 
Registered: Sep 2004
Posts: 127

Rep: Reputation: 15
Compilation Problem


I am compiling code in directory say : home/app/console
Now there is a library file libabc.so in /home/api/.libs - that I refer to while compiling code in /home/app/console.

I get this error for that Library file:


../api/.libs/liblinphone.so: undefined reference to `rtp_session_enable_adaptive_jitter_compensation'

Can anyone advise waht could be the problem and how to solve it....
 
Old 03-23-2005, 03:57 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,642

Rep: Reputation: 209Reputation: 209Reputation: 209
It can't find that function/variable/structure etc. Make sure the library is linked will all needed files, especially with file (or header) with that structure/function/etc.
 
Old 03-24-2005, 01:52 AM   #3
jonty_11
Member
 
Registered: Sep 2004
Posts: 127

Original Poster
Rep: Reputation: 15
I looked in the directory whose source files compile to make liblinphone.so...None of those source files have this variable (rtp_sessions......)

Where would be trying to get this variable from.
All the source in that directory../coreapi/ was copiled fine....

why does it complain abt that directory which has been already "make" successfully.....
 
Old 03-24-2005, 06:58 AM   #4
cppkid
Member
 
Registered: Jul 2004
Location: Pakistan
Distribution: Ubuntu
Posts: 185

Rep: Reputation: 30
When you are compiling it, you missd to give the refference to some shared library.
Like when you compile some program that use posix_threads you compile it as
cc -o app source.c -lpthread
Similarly you have to inculde the path of that shared library when you are linking that file with the -l switch.
-L switch is used to give refference to some shared library
 
Old 03-24-2005, 09:45 PM   #5
jonty_11
Member
 
Registered: Sep 2004
Posts: 127

Original Poster
Rep: Reputation: 15
You mean when liblinphone.so was build it was build with Wrong options...
../api/.libs/liblinphone.so: undefined reference to `rtp_session_enable_adaptive_jitter_compensation'

Should nt it complain abt it when compiling that directory where is builds liblinphone.so...
 
  


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
Kernel compilation problem JJX Linux - Software 4 08-31-2005 05:50 AM
C++ Compilation problem with G++ nelnel Programming 6 07-06-2005 09:58 PM
c compilation problem edreddy Programming 5 06-02-2004 12:37 PM
Problem with Apache compilation gr8geezer Linux - Software 0 03-13-2003 11:25 PM
Compilation problem... need help Korshun Programming 2 05-07-2002 12:33 PM

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

All times are GMT -5. The time now is 01: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration