undefined reference to

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,
please, help me. I download newest PJSIP, released on 2012-07-03.
I compiled it ./configure make dep && make, installed it sudo make install on ubuntu 12.04. Everything seems to be OK, 
no error message.
Than I try my own program, for first start I just copy pjproject-2.0.1/pjsip-apps/src/samples/simple_pjsua.c to my 
voip.c. I add all libs to linker, I didn't find pjsip-core and pjlib as is on this page 
http://www.pjsip.org/docs/latest/pjsip/docs/html/group__PJSUA__LIB.htm, I try add pjsip-x86_64-unknown-linux-gnu and 
pj-x86_64-unknown-linux-gnu.
Here is linker command:
gcc -o "uh13" ./voip.o -lg7221codec-x86_64-unknown-linux-gnu -lgsmcodec-x86_64-unknown-linux-gnu 
-lilbccodec-x86_64-unknown-linux-gnu -lmilenage-x86_64-unknown-linux-gnu -lpj-x86_64-unknown-linux-gnu 
-lpjlib-util-x86_64-unknown-linux-gnu -lpjmedia-audiodev-x86_64-unknown-linux-gnu 
-lpjmedia-codec-x86_64-unknown-linux-gnu -lpjmedia-x86_64-unknown-linux-gnu -lpjnath-x86_64-unknown-linux-gnu 
-lpjsip-simple-x86_64-unknown-linux-gnu -lpjsip-ua-x86_64-unknown-linux-gnu -lpjsip-x86_64-unknown-linux-gnu 
-lpjsua-x86_64-unknown-linux-gnu -lportaudio-x86_64-unknown-linux-gnu -lresample-x86_64-unknown-linux-gnu 
-lspeex-x86_64-unknown-linux-gnu -lsrtp-x86_64-unknown-linux-gnu

but still get a lot of (just few last lines):
pjsua_aud.c:(.text+0x1830): undefined reference to `pjmedia_conf_get_signal_level'
/usr/local/lib/libpjsua-x86_64-unknown-linux-gnu.a(pjsua_aud.o): In function `pjsua_player_set_pos':
pjsua_aud.c:(.text+0x1fd5): undefined reference to `pjmedia_wav_player_port_set_pos'
/usr/local/lib/libpjsua-x86_64-unknown-linux-gnu.a(pjsua_aud.o): In function `pjsua_set_no_snd_dev':
pjsua_aud.c:(.text+0x3328): undefined reference to `pjmedia_conf_get_master_port'
collect2: ld returned 1 exit status

What did I wrong?
Thanks for help.
Jiri



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux