LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Compilation Problem (https://www.linuxquestions.org/questions/programming-9/compilation-problem-305202/)

jonty_11 03-23-2005 03:28 PM

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....

Mara 03-23-2005 03:57 PM

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.

jonty_11 03-24-2005 01:52 AM

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.....

cppkid 03-24-2005 06:58 AM

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

jonty_11 03-24-2005 09:45 PM

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...


All times are GMT -5. The time now is 02:26 AM.