Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 03-23-2005, 03:28 PM   #1
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 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/ 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
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,665

Rep: Reputation: 215Reputation: 215Reputation: 215
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
Registered: Sep 2004
Posts: 127

Original Poster
Rep: Reputation: 15
I looked in the directory whose source files compile to make 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
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
Registered: Sep 2004
Posts: 127

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

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


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 > Forums > Non-*NIX Forums > Programming

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

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