linphone-developers
[Top][All Lists]
Advanced

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

[Linphone-developers] Error while compiling example liblinphone


From: uahmed
Subject: [Linphone-developers] Error while compiling example liblinphone
Date: Sat, 25 Feb 2012 23:19:07 +0500

Hi

I install the liblinphone and when i try to run the example of buddy status i am keep getting this error

/tmp/cch6VrOi.o: In function `notify_presence_recv_updated':
linph.c:(.text+0x1a): undefined reference to `linphone_friend_get_address'
linph.c:(.text+0x28): undefined reference to `linphone_address_as_string'
linph.c:(.text+0x35): undefined reference to `linphone_friend_get_status'
linph.c:(.text+0x3d): undefined reference to `linphone_online_status_to_string'
/tmp/cch6VrOi.o: In function `new_subscription_request':
linph.c:(.text+0x69): undefined reference to `linphone_friend_get_address'
linph.c:(.text+0x77): undefined reference to `linphone_address_as_string'
linph.c:(.text+0x93): undefined reference to `linphone_friend_edit'
linph.c:(.text+0xa6): undefined reference to `linphone_friend_set_inc_subscribe_policy'
linph.c:(.text+0xb1): undefined reference to `linphone_friend_done'
linph.c:(.text+0xc3): undefined reference to `linphone_core_add_friend'
/tmp/cch6VrOi.o: In function `registration_state_changed':
linph.c:(.text+0xd8): undefined reference to `linphone_proxy_config_get_addr'
linph.c:(.text+0xe5): undefined reference to `linphone_proxy_config_get_identity'
linph.c:(.text+0xf2): undefined reference to `linphone_registration_state_to_string'
/tmp/cch6VrOi.o: In function `main':
linph.c:(.text+0x1e4): undefined reference to `linphone_core_new'
linph.c:(.text+0x1fc): undefined reference to `linphone_proxy_config_new'
linph.c:(.text+0x212): undefined reference to `linphone_address_new'
linph.c:(.text+0x250): undefined reference to `linphone_address_get_username'
linph.c:(.text+0x27b): undefined reference to `linphone_auth_info_new'
linph.c:(.text+0x294): undefined reference to `linphone_core_add_auth_info'
linph.c:(.text+0x2ae): undefined reference to `linphone_proxy_config_set_identity'
linph.c:(.text+0x2ba): undefined reference to `linphone_address_get_domain'
linph.c:(.text+0x2cd): undefined reference to `linphone_proxy_config_set_server_addr'
linph.c:(.text+0x2e4): undefined reference to `linphone_proxy_config_enable_register'
linph.c:(.text+0x2fb): undefined reference to `linphone_proxy_config_enable_publish'
linph.c:(.text+0x307): undefined reference to `linphone_address_destroy'
linph.c:(.text+0x31f): undefined reference to `linphone_core_add_proxy_config'
linph.c:(.text+0x337): undefined reference to `linphone_core_set_default_proxy'
linph.c:(.text+0x344): undefined reference to `linphone_core_iterate'
linph.c:(.text+0x358): undefined reference to `ms_usleep'
linph.c:(.text+0x372): undefined reference to `linphone_proxy_config_get_state'
linph.c:(.text+0x398): undefined reference to `linphone_friend_new_with_addr'
linph.c:(.text+0x3d4): undefined reference to `linphone_friend_enable_subscribes'
linph.c:(.text+0x3e8): undefined reference to `linphone_friend_set_inc_subscribe_policy'
linph.c:(.text+0x3fd): undefined reference to `linphone_core_add_friend'
linph.c:(.text+0x422): undefined reference to `linphone_core_set_presence_info'
linph.c:(.text+0x431): undefined reference to `linphone_core_iterate'
linph.c:(.text+0x445): undefined reference to `ms_usleep'
linph.c:(.text+0x475): undefined reference to `linphone_core_set_presence_info'
linph.c:(.text+0x482): undefined reference to `linphone_core_iterate'
linph.c:(.text+0x48e): undefined reference to `linphone_friend_edit'
linph.c:(.text+0x4a2): undefined reference to `linphone_friend_enable_subscribes'
linph.c:(.text+0x4ae): undefined reference to `linphone_friend_done'
linph.c:(.text+0x4bb): undefined reference to `linphone_core_iterate'
linph.c:(.text+0x4d4): undefined reference to `linphone_core_destroy'
collect2: ld returned 1 exit status
address@hidden:~/Desktop/linphone$ sudo vim linph.c
address@hidden:~/Desktop/linphone$ gcc linph.c -o linph
/tmp/ccyaeTIP.o: In function `notify_presence_recv_updated':
linph.c:(.text+0x1a): undefined reference to `linphone_friend_get_address'
linph.c:(.text+0x28): undefined reference to `linphone_address_as_string'
linph.c:(.text+0x35): undefined reference to `linphone_friend_get_status'
linph.c:(.text+0x3d): undefined reference to `linphone_online_status_to_string'
/tmp/ccyaeTIP.o: In function `new_subscription_request':
linph.c:(.text+0x69): undefined reference to `linphone_friend_get_address'
linph.c:(.text+0x77): undefined reference to `linphone_address_as_string'
linph.c:(.text+0x93): undefined reference to `linphone_friend_edit'
linph.c:(.text+0xa6): undefined reference to `linphone_friend_set_inc_subscribe_policy'
linph.c:(.text+0xb1): undefined reference to `linphone_friend_done'
linph.c:(.text+0xc3): undefined reference to `linphone_core_add_friend'
/tmp/ccyaeTIP.o: In function `registration_state_changed':
linph.c:(.text+0xd8): undefined reference to `linphone_proxy_config_get_addr'
linph.c:(.text+0xe5): undefined reference to `linphone_proxy_config_get_identity'
linph.c:(.text+0xf2): undefined reference to `linphone_registration_state_to_string'
/tmp/ccyaeTIP.o: In function `main':
linph.c:(.text+0x1e4): undefined reference to `linphone_core_new'
linph.c:(.text+0x1fc): undefined reference to `linphone_proxy_config_new'
linph.c:(.text+0x212): undefined reference to `linphone_address_new'
linph.c:(.text+0x250): undefined reference to `linphone_address_get_username'
linph.c:(.text+0x27b): undefined reference to `linphone_auth_info_new'
linph.c:(.text+0x294): undefined reference to `linphone_core_add_auth_info'
linph.c:(.text+0x2ae): undefined reference to `linphone_proxy_config_set_identity'
linph.c:(.text+0x2ba): undefined reference to `linphone_address_get_domain'
linph.c:(.text+0x2cd): undefined reference to `linphone_proxy_config_set_server_addr'
linph.c:(.text+0x2e4): undefined reference to `linphone_proxy_config_enable_register'
linph.c:(.text+0x2fb): undefined reference to `linphone_proxy_config_enable_publish'
linph.c:(.text+0x307): undefined reference to `linphone_address_destroy'
linph.c:(.text+0x31f): undefined reference to `linphone_core_add_proxy_config'
linph.c:(.text+0x337): undefined reference to `linphone_core_set_default_proxy'
linph.c:(.text+0x344): undefined reference to `linphone_core_iterate'
linph.c:(.text+0x358): undefined reference to `ms_usleep'
linph.c:(.text+0x372): undefined reference to `linphone_proxy_config_get_state'
linph.c:(.text+0x398): undefined reference to `linphone_friend_new_with_addr'
linph.c:(.text+0x3d4): undefined reference to `linphone_friend_enable_subscribes'
linph.c:(.text+0x3e8): undefined reference to `linphone_friend_set_inc_subscribe_policy'
linph.c:(.text+0x3fd): undefined reference to `linphone_core_add_friend'
linph.c:(.text+0x422): undefined reference to `linphone_core_set_presence_info'
linph.c:(.text+0x431): undefined reference to `linphone_core_iterate'
linph.c:(.text+0x445): undefined reference to `ms_usleep'
linph.c:(.text+0x475): undefined reference to `linphone_core_set_presence_info'
linph.c:(.text+0x482): undefined reference to `linphone_core_iterate'
linph.c:(.text+0x48e): undefined reference to `linphone_friend_edit'
linph.c:(.text+0x4a2): undefined reference to `linphone_friend_enable_subscribes'
linph.c:(.text+0x4ae): undefined reference to `linphone_friend_done'
linph.c:(.text+0x4bb): undefined reference to `linphone_core_iterate'
linph.c:(.text+0x4d4): undefined reference to `linphone_core_destroy'
collect2: ld returned 1 exit status
address@hidden:~/Desktop/linphone$ sudo gcc linph.c -o linph
/tmp/ccJgx7FP.o: In function `notify_presence_recv_updated':
linph.c:(.text+0x1a): undefined reference to `linphone_friend_get_address'
linph.c:(.text+0x28): undefined reference to `linphone_address_as_string'
linph.c:(.text+0x35): undefined reference to `linphone_friend_get_status'
linph.c:(.text+0x3d): undefined reference to `linphone_online_status_to_string'
/tmp/ccJgx7FP.o: In function `new_subscription_request':
linph.c:(.text+0x69): undefined reference to `linphone_friend_get_address'
linph.c:(.text+0x77): undefined reference to `linphone_address_as_string'
linph.c:(.text+0x93): undefined reference to `linphone_friend_edit'
linph.c:(.text+0xa6): undefined reference to `linphone_friend_set_inc_subscribe_policy'
linph.c:(.text+0xb1): undefined reference to `linphone_friend_done'
linph.c:(.text+0xc3): undefined reference to `linphone_core_add_friend'
/tmp/ccJgx7FP.o: In function `registration_state_changed':
linph.c:(.text+0xd8): undefined reference to `linphone_proxy_config_get_addr'
linph.c:(.text+0xe5): undefined reference to `linphone_proxy_config_get_identity'
linph.c:(.text+0xf2): undefined reference to `linphone_registration_state_to_string'
/tmp/ccJgx7FP.o: In function `main':
linph.c:(.text+0x1e4): undefined reference to `linphone_core_new'
linph.c:(.text+0x1fc): undefined reference to `linphone_proxy_config_new'
linph.c:(.text+0x212): undefined reference to `linphone_address_new'
linph.c:(.text+0x250): undefined reference to `linphone_address_get_username'
linph.c:(.text+0x27b): undefined reference to `linphone_auth_info_new'
linph.c:(.text+0x294): undefined reference to `linphone_core_add_auth_info'
linph.c:(.text+0x2ae): undefined reference to `linphone_proxy_config_set_identity'
linph.c:(.text+0x2ba): undefined reference to `linphone_address_get_domain'
linph.c:(.text+0x2cd): undefined reference to `linphone_proxy_config_set_server_addr'
linph.c:(.text+0x2e4): undefined reference to `linphone_proxy_config_enable_register'
linph.c:(.text+0x2fb): undefined reference to `linphone_proxy_config_enable_publish'
linph.c:(.text+0x307): undefined reference to `linphone_address_destroy'
linph.c:(.text+0x31f): undefined reference to `linphone_core_add_proxy_config'
linph.c:(.text+0x337): undefined reference to `linphone_core_set_default_proxy'
linph.c:(.text+0x344): undefined reference to `linphone_core_iterate'
linph.c:(.text+0x358): undefined reference to `ms_usleep'
linph.c:(.text+0x372): undefined reference to `linphone_proxy_config_get_state'
linph.c:(.text+0x398): undefined reference to `linphone_friend_new_with_addr'
linph.c:(.text+0x3d4): undefined reference to `linphone_friend_enable_subscribes'
linph.c:(.text+0x3e8): undefined reference to `linphone_friend_set_inc_subscribe_policy'
linph.c:(.text+0x3fd): undefined reference to `linphone_core_add_friend'
linph.c:(.text+0x422): undefined reference to `linphone_core_set_presence_info'
linph.c:(.text+0x431): undefined reference to `linphone_core_iterate'
linph.c:(.text+0x445): undefined reference to `ms_usleep'
linph.c:(.text+0x475): undefined reference to `linphone_core_set_presence_info'
linph.c:(.text+0x482): undefined reference to `linphone_core_iterate'
linph.c:(.text+0x48e): undefined reference to `linphone_friend_edit'
linph.c:(.text+0x4a2): undefined reference to `linphone_friend_enable_subscribes'
linph.c:(.text+0x4ae): undefined reference to `linphone_friend_done'
linph.c:(.text+0x4bb): undefined reference to `linphone_core_iterate'
linph.c:(.text+0x4d4): undefined reference to `linphone_core_destroy'
collect2: ld returned 1 exit status

code is taken from http://mirror.veriportal.com/savannah/linphone/docs/liblinphone/group__buddy__tutorials.html
i save the code in a file name status.c
and compile it with this command

gcc status.c -o status

reply via email to

[Prev in Thread] Current Thread [Next in Thread]