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