using PJSIP in other application

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

 



Hi Benny,

I had build the PJSIP and I was able to run the pjsua.

I tried creating my own project and when i call pjsua_start() and other methods from pjsip i got this error


Error??? 7??? error LNK2028: unresolved token (0A00000E) "extern "C" int __clrcall pjsua_acc_add(struct pjsua_acc_config const *,int,int *)" (?pjsua_acc_add@@$$J0YMHPBUpjsua_acc_config@@HPAH at Z) referenced in function "private: void __clrcall VoIP::Form1::button1_Click(class System::Object ^,class System::EventArgs ^)" (?button1_Click at Form1@VoIP@@$$FA$AAMXP$AAVObject at System@@P$AAVEventArgs at 4@@Z)??? VoIP.obj
Error??? 8??? error LNK2028: unresolved token (0A00000F) "extern "C" struct pj_str_t __clrcall pj_str(char *)" (?pj_str@@$$J0YM?AUpj_str_t@@PAD at Z) referenced in function "private: void __clrcall VoIP::Form1::button1_Click(class System::Object ^,class System::EventArgs ^)" (?button1_Click at Form1@VoIP@@$$FA$AAMXP$AAVObject at System@@P$AAVEventArgs at 4@@Z)??? VoIP.obj
Error??? 9??? error LNK2028: unresolved token (0A000010) "extern "C" void __clrcall pjsua_acc_config_default(struct pjsua_acc_config *)" (?pjsua_acc_config_default@@$$J0YMXPAUpjsua_acc_config@@@Z) referenced in function "private: void __clrcall VoIP::Form1::button1_Click(class System::Object ^,class System::EventArgs ^)" (?button1_Click at Form1@VoIP@@$$FA$AAMXP$AAVObject at System@@P$AAVEventArgs at 4@@Z)??? VoIP.obj
Error??? 10??? error LNK2028: unresolved token (0A000011) "extern "C" int __clrcall pjsua_destroy(void)" (?pjsua_destroy@@$$J0YMHXZ) referenced in function "private: void __clrcall VoIP::Form1::button1_Click(class System::Object ^,class System::EventArgs ^)" (?button1_Click at Form1@VoIP@@$$FA$AAMXP$AAVObject at System@@P$AAVEventArgs at 4@@Z)??? VoIP.obj
Error??? 11??? error LNK2028: unresolved token (0A000012) "extern "C" int __clrcall pjsua_start(void)" (?pjsua_start@@$$J0YMHXZ) referenced in function "private: void __clrcall VoIP::Form1::button1_Click(class System::Object ^,class System::EventArgs ^)" (?button1_Click at Form1@VoIP@@$$FA$AAMXP$AAVObject at System@@P$AAVEventArgs at 4@@Z)??? VoIP.obj
Error??? 12??? error LNK2019: unresolved external symbol "extern "C" int __clrcall pjsua_acc_add(struct pjsua_acc_config const *,int,int *)" (?pjsua_acc_add@@$$J0YMHPBUpjsua_acc_config@@HPAH at Z) referenced in function "private: void __clrcall VoIP::Form1::button1_Click(class System::Object ^,class System::EventArgs ^)" (?button1_Click at Form1@VoIP@@$$FA$AAMXP$AAVObject at System@@P$AAVEventArgs at 4@@Z)??? VoIP.obj
Error??? 13??? error LNK2019: unresolved external symbol "extern "C" struct pj_str_t __clrcall pj_str(char *)" (?pj_str@@$$J0YM?AUpj_str_t@@PAD at Z) referenced in function "private: void __clrcall VoIP::Form1::button1_Click(class System::Object ^,class System::EventArgs ^)" (?button1_Click at Form1@VoIP@@$$FA$AAMXP$AAVObject at System@@P$AAVEventArgs at 4@@Z)??? VoIP.obj
Error??? 14??? error LNK2019: unresolved external symbol "extern "C" void __clrcall pjsua_acc_config_default(struct pjsua_acc_config *)" (?pjsua_acc_config_default@@$$J0YMXPAUpjsua_acc_config@@@Z) referenced in function "private: void __clrcall VoIP::Form1::button1_Click(class System::Object ^,class System::EventArgs ^)" (?button1_Click at Form1@VoIP@@$$FA$AAMXP$AAVObject at System@@P$AAVEventArgs at 4@@Z)??? VoIP.obj
Error??? 15??? error LNK2019: unresolved external symbol "extern "C" int __clrcall pjsua_destroy(void)" (?pjsua_destroy@@$$J0YMHXZ) referenced in function "private: void __clrcall VoIP::Form1::button1_Click(class System::Object ^,class System::EventArgs ^)" (?button1_Click at Form1@VoIP@@$$FA$AAMXP$AAVObject at System@@P$AAVEventArgs at 4@@Z)??? VoIP.obj
Error??? 16??? error LNK2019: unresolved external symbol "extern "C" int __clrcall pjsua_start(void)" (?pjsua_start@@$$J0YMHXZ) referenced in function "private: void __clrcall VoIP::Form1::button1_Click(class System::Object ^,class System::EventArgs ^)" (?button1_Click at Form1@VoIP@@$$FA$AAMXP$AAVObject at System@@P$AAVEventArgs at 4@@Z)??? VoIP.obj
Error??? 17??? fatal error LNK1120: 10 unresolved externals??? C:\Documents and Settings\Joseph\My Documents\Visual Studio 2008\Projects\VoIP\Debug\VoIP.exe


But without using any method from sip lib.. My program runs. The only difference is that I used forms

Thanks,

Joseph



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090108/f93009f1/attachment.html>


[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