About the Error "_pjsua.obj : error LNK2019: unresolved external symbol......"

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

 



Hello, I am trying to build the PJSIP2.3 for Python, but failed with many
errors similar to "_pjsua.obj : error LNK2019: unresolved external
symbol __snprintf referenced in function _cb_on_dtmf_digit", as below. I
have followed the instruction as in this link:
http://trac.pjsip.org/repos/wiki/Getting-Started/Windows#no1. but never
succeeded, could you help me out a little bit?

By the way, how to add the macro PJ_Win32=1 into the project settings?, I
googled a method of adding a tag in .vcxproj file, but it didn't work for
me. could you help me?

Thank you so much!

The error message generated during build is listed as below, and I attached
my .vcxproj and _pjsua.c file here  as well for you reference:

1>------ Build started: Project: python_pjsua, Configuration: Release Win32
------
1>  _pjsua.c
1>D:\Work Place\My Projects\Visual Studio
2012\Projects\pjproject-2.3\pjmedia\include\pjmedia-codec/g7221.h : warning
C4819: The file contains a character that cannot be represented in the
current code page (936). Save the file in Unicode format to prevent data
loss
1>     Creating library
.\output\python_pjsua-i386-win32-vc8-release\_pjsua.lib and object
.\output\python_pjsua-i386-win32-vc8-release\_pjsua.exp
1>_pjsua.obj : error LNK2019: unresolved external symbol __snprintf
referenced in function _cb_on_dtmf_digit
1>_pjsua.obj : error LNK2019: unresolved external symbol _strncpy
referenced in function _py_pj_parse_simple_sip
1>_pjsua.obj : error LNK2019: unresolved external symbol _free referenced
in function _py_pjsua_call_dump
1>_pjsua.obj : error LNK2019: unresolved external symbol _malloc referenced
in function _py_pjsua_call_dump
1>_pjsua.obj : error LNK2019: unresolved external symbol _pj_atexit
referenced in function _py_pjsua_create
1>_pjsua.obj : error LNK2019: unresolved external symbol _pj_strerror
referenced in function _py_pj_strerror
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pj_list_insert_before referenced in function _pj_list_push_back
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsip_msg_find_hdr referenced in function _cb_on_incoming_subscribe
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsip_generic_string_hdr_create referenced in function _translate_hdr
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsip_parse_uri
referenced in function _py_pj_parse_simple_sip
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsip_rx_data_get_info referenced in function _PyObj_pjsip_rx_data_import
1>_pjsua.obj : error LNK2019: unresolved external symbol _pj_pool_release
referenced in function _py_pjsua_call_send_request
1>_pjsua.obj : error LNK2019: unresolved external symbol _pj_pool_alloc
referenced in function _cb_on_incoming_subscribe
1>_pjsua.obj : error LNK2019: unresolved external symbol _pj_str referenced
in function _py_pjsua_acc_set_online_status2
1>_pjsua.obj : error LNK2019: unresolved external symbol _pj_strncpy
referenced in function _cb_on_incoming_subscribe
1>_pjsua.obj : error LNK2019: unresolved external symbol _pj_stricmp2
referenced in function _py_pj_parse_simple_sip
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pj_thread_register referenced in function _py_pjsua_thread_register
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pj_thread_local_alloc referenced in function _py_pjsua_create
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pj_thread_local_set referenced in function _py_pjsua_thread_register
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pj_thread_local_get referenced in function _cb_log_cb
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_logging_config_default referenced in function
_py_pjsua_logging_config_default
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_config_default referenced in function _py_pjsua_config_default
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_msg_data_init referenced in function _py_pjsua_call_send_request
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_create
referenced in function _py_pjsua_create
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_init
referenced in function _py_pjsua_init
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_start
referenced in function _py_pjsua_start
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_destroy
referenced in function _py_pjsua_destroy
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_handle_events referenced in function _py_pjsua_handle_events
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_pool_create
referenced in function _py_pjsua_call_send_request
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_reconfigure_logging referenced in function
_py_pjsua_reconfigure_logging
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_verify_sip_url referenced in function _py_pjsua_verify_sip_url
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_perror
referenced in function _py_pjsua_perror
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_dump
referenced in function _py_pjsua_dump
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_transport_config_default referenced in function
_py_pjsua_transport_config_default
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_transport_create referenced in function _py_pjsua_transport_create
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_enum_transports referenced in function _py_pjsua_enum_transports
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_transport_get_info referenced in function
_py_pjsua_transport_get_info
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_transport_set_enable referenced in function
_py_pjsua_transport_set_enable
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_transport_close referenced in function _py_pjsua_transport_close
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_acc_config_default referenced in function
_py_pjsua_acc_config_default
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_acc_get_count referenced in function _py_pjsua_acc_get_count
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_acc_is_valid referenced in function _py_pjsua_acc_is_valid
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_acc_set_default referenced in function _py_pjsua_acc_set_default
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_acc_get_default referenced in function _py_pjsua_acc_get_default
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_acc_add
referenced in function _py_pjsua_acc_add
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_acc_add_local referenced in function _py_pjsua_acc_add_local
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_acc_set_user_data referenced in function _py_pjsua_acc_set_user_data
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_acc_get_user_data referenced in function _py_pjsua_acc_set_user_data
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_acc_del
referenced in function _py_pjsua_acc_del
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_acc_modify
referenced in function _py_pjsua_acc_modify
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_acc_set_online_status referenced in function
_py_pjsua_acc_set_online_status
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_acc_set_online_status2 referenced in function
_py_pjsua_acc_set_online_status2
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_acc_set_registration referenced in function
_py_pjsua_acc_set_registration
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_acc_get_info referenced in function _py_pjsua_acc_get_info
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_enum_accs
referenced in function _py_pjsua_enum_accs
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_acc_enum_info referenced in function _py_pjsua_acc_enum_info
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_acc_set_transport referenced in function _py_pjsua_acc_set_transport
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_call_setting_default referenced in function _py_pjsua_call_make_call
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_call_get_max_count referenced in function
_py_pjsua_call_get_max_count
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_call_get_count referenced in function _py_pjsua_call_get_count
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_enum_calls
referenced in function _py_pjsua_enum_calls
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_call_make_call referenced in function _py_pjsua_call_make_call
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_call_is_active referenced in function _py_pjsua_call_is_active
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_call_has_media referenced in function _py_pjsua_call_has_media
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_call_get_conf_port referenced in function
_py_pjsua_call_get_conf_port
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_call_get_info referenced in function _py_pjsua_call_get_info
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_call_set_user_data referenced in function
_py_pjsua_call_set_user_data
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_call_get_user_data referenced in function
_py_pjsua_call_set_user_data
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_call_answer
referenced in function _py_pjsua_call_answer
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_call_hangup
referenced in function _py_pjsua_call_hangup
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_call_set_hold referenced in function _py_pjsua_call_set_hold
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_call_reinvite referenced in function _py_pjsua_call_reinvite
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_call_update
referenced in function _py_pjsua_call_update
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_call_xfer
referenced in function _py_pjsua_call_xfer
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_call_xfer_replaces referenced in function
_py_pjsua_call_xfer_replaces
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_call_dial_dtmf referenced in function _py_pjsua_call_dial_dtmf
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_call_send_im referenced in function _py_pjsua_call_send_im
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_call_send_typing_ind referenced in function
_py_pjsua_call_send_typing_ind
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_call_send_request referenced in function _py_pjsua_call_send_request
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_call_hangup_all referenced in function _py_pjsua_call_hangup_all
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_call_dump
referenced in function _py_pjsua_call_dump
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_buddy_config_default referenced in function
_py_pjsua_buddy_config_default
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_get_buddy_count referenced in function _py_pjsua_get_buddy_count
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_buddy_is_valid referenced in function _py_pjsua_buddy_set_user_data
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_enum_buddies referenced in function _py_pjsua_enum_buddies
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_buddy_find
referenced in function _py_pjsua_buddy_find
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_buddy_get_info referenced in function _py_pjsua_buddy_get_info
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_buddy_set_user_data referenced in function
_py_pjsua_buddy_set_user_data
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_buddy_get_user_data referenced in function
_py_pjsua_buddy_set_user_data
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_buddy_add
referenced in function _py_pjsua_buddy_add
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_buddy_del
referenced in function _py_pjsua_buddy_del
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_buddy_subscribe_pres referenced in function
_py_pjsua_buddy_subscribe_pres
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_pres_notify
referenced in function _py_pjsua_acc_pres_notify
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_pres_dump
referenced in function _py_pjsua_pres_dump
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_im_send
referenced in function _py_pjsua_im_send
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_im_typing
referenced in function _py_pjsua_im_typing
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_media_config_default referenced in function
_py_pjsua_media_config_default
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_conf_get_max_ports referenced in function
_py_pjsua_conf_get_max_ports
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_conf_get_active_ports referenced in function
_py_pjsua_conf_get_active_ports
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_enum_conf_ports referenced in function _py_pjsua_enum_conf_ports
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_conf_get_port_info referenced in function
_py_pjsua_conf_get_port_info
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_conf_remove_port referenced in function _py_pjsua_conf_remove_port
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_conf_connect referenced in function _py_pjsua_conf_connect
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_conf_disconnect referenced in function _py_pjsua_conf_disconnect
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_conf_adjust_tx_level referenced in function
_py_pjsua_conf_set_tx_level
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_conf_adjust_rx_level referenced in function
_py_pjsua_conf_set_rx_level
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_conf_get_signal_level referenced in function
_py_pjsua_conf_get_signal_level
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_player_create referenced in function _py_pjsua_player_create
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_playlist_create referenced in function _py_pjsua_playlist_create
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_player_get_conf_port referenced in function
_py_pjsua_player_get_conf_port
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_player_set_pos referenced in function _py_pjsua_player_set_pos
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_player_destroy referenced in function _py_pjsua_player_destroy
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_recorder_create referenced in function _py_pjsua_recorder_create
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_recorder_get_conf_port referenced in function
_py_pjsua_recorder_get_conf_port
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_recorder_destroy referenced in function _py_pjsua_recorder_destroy
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_enum_snd_devs referenced in function _py_pjsua_enum_snd_devs
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_get_snd_dev
referenced in function _py_pjsua_get_snd_dev
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_set_snd_dev
referenced in function _py_pjsua_set_snd_dev
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_set_null_snd_dev referenced in function _py_pjsua_set_null_snd_dev
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_set_ec
referenced in function _py_pjsua_set_ec
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_get_ec_tail
referenced in function _py_pjsua_get_ec_tail
1>_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_enum_codecs
referenced in function _py_pjsua_enum_codecs
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_codec_set_priority referenced in function
_py_pjsua_codec_set_priority
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_codec_get_param referenced in function _py_pjsua_codec_get_param
1>_pjsua.obj : error LNK2019: unresolved external symbol
_pjsua_codec_set_param referenced in function _py_pjsua_codec_set_param
1>_pjsua.obj : error LNK2019: unresolved external symbol
@__security_check_cookie at 4 referenced in function _py_pjsua_enum_conf_ports
1>_pjsua.obj : error LNK2019: unresolved external symbol __chkstk
referenced in function _py_pjsua_enum_snd_devs
1>_pjsua.obj : error LNK2019: unresolved external symbol _memset referenced
in function _pj_bzero
1>_pjsua.obj : error LNK2019: unresolved external symbol ___security_cookie
referenced in function _py_pjsua_enum_conf_ports
1>_pjsua.obj : error LNK2001: unresolved external symbol __fltused
1>LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup at 12
1>.\output\python_pjsua-i386-win32-vc8-release\_pjsua.pyd : fatal error
LNK1120: 131 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20150125/e2dc40cf/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python_pjsua.vcxproj
Type: application/xml
Size: 10798 bytes
Desc: not available
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20150125/e2dc40cf/attachment.vcxproj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: _pjsua.c
Type: text/x-csrc
Size: 120563 bytes
Desc: not available
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20150125/e2dc40cf/attachment.c>


[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