On Tue, Oct 27, 2009 at 12:08 AM, sunil sarolkar <spsarolkar at gmail.com> wrote: > Hello everyone, > I am trying?PJSUA sample program present > at?http://www.pjsip.org/pjsip/docs/html/page_pjsip_samples_pjsua.htm > But getting linker errors: > simple_pjsua.obj : error LNK2001: unresolved external symbol "int > pjsip_use_compact_form" (?pjsip_use_compact_form@@3HA) > simple_pjsua.obj : error LNK2001: unresolved external symbol "int > pjsip_use_compact_form" (?pjsip_use_compact_form@@3HA) > simple_pjsua.obj : error LNK2001: unresolved external symbol "int > pjmedia_add_rtpmap_for_static_pt" (?pjmedia_add_rtpmap_for_static_pt@@3HA) > simple_pjsua.obj : error LNK2001: unresolved external symbol "int > pjsip_include_allow_hdr_in_dlg" (?pjsip_include_allow_hdr_in_dlg@@3HA) SInce you're writing a C++ code, you'd need to declare these variables as extern "C". HTH Benny