无法建立我的程式 [英] cannot build my program

查看:118
本文介绍了无法建立我的程式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个cpp程序.该程序是一个软件电话(sip phone).我能够在没有错误或警告的情况下编译代码.



I have a cpp program. the program is a softphone(sip phone). i'm able to compile the code with no errors or warnings..

------ Build started: Project: test, Configuration: Debug Win32 ------

Compiling...
Skipping... (no relevant changes detected)
test.cpp

Build log was saved at "file://d:\soft\test\test\Debug\BuildLog.htm"
test - 0 error(s), 0 warning(s)


---------------------- Done ----------------------

    Build: 1 succeeded, 0 failed, 0 skipped


该程序基本上使用来自sip堆栈(pjsip)的头文件.

但是当我尝试构建代码时,它会产生25个错误.


the program basically uses header files from a sip stack( pjsip)

but when i try to build the code it generates 25 errors.

------ Build started: Project: test, Configuration: Debug Win32 ------

Linking...
test.obj : error LNK2019: unresolved external symbol _pjsua_acc_add referenced in function "void __cdecl pjstart(void)" (?pjstart@@YAXXZ)
test.obj : error LNK2019: unresolved external symbol _pj_str referenced in function "void __cdecl pjstart(void)" (?pjstart@@YAXXZ)
test.obj : error LNK2019: unresolved external symbol _pjsua_acc_config_default referenced in function "void __cdecl pjstart(void)" (?pjstart@@YAXXZ)
test.obj : error LNK2019: unresolved external symbol _pjsua_start referenced in function "void __cdecl pjstart(void)" (?pjstart@@YAXXZ)
test.obj : error LNK2019: unresolved external symbol _pjsua_transport_create referenced in function "void __cdecl pjstart(void)" (?pjstart@@YAXXZ)
test.obj : error LNK2019: unresolved external symbol _pjsua_transport_config_default referenced in function "void __cdecl pjstart(void)" (?pjstart@@YAXXZ)
test.obj : error LNK2019: unresolved external symbol _pjsua_init referenced in function "void __cdecl pjstart(void)" (?pjstart@@YAXXZ)
test.obj : error LNK2019: unresolved external symbol _pjsua_logging_config_default referenced in function "void __cdecl pjstart(void)" (?pjstart@@YAXXZ)
test.obj : error LNK2019: unresolved external symbol _pjsua_config_default referenced in function "void __cdecl pjstart(void)" (?pjstart@@YAXXZ)
test.obj : error LNK2019: unresolved external symbol _pjsua_create referenced in function "void __cdecl pjstart(void)" (?pjstart@@YAXXZ)
test.obj : error LNK2019: unresolved external symbol _pjsua_destroy referenced in function "void __cdecl error_exit(char const *,int)" (?error_exit@@YAXPBDH@Z)
test.obj : error LNK2019: unresolved external symbol _pjsua_perror referenced in function "void __cdecl error_exit(char const *,int)" (?error_exit@@YAXPBDH@Z)
test.obj : error LNK2019: unresolved external symbol _pjsua_call_hangup referenced in function "void __cdecl on_incoming_call(int,int,struct pjsip_rx_data *)" (?on_incoming_call@@YAXHHPAUpjsip_rx_data@@@Z)
test.obj : error LNK2019: unresolved external symbol _pjsua_call_answer referenced in function "void __cdecl on_incoming_call(int,int,struct pjsip_rx_data *)" (?on_incoming_call@@YAXHHPAUpjsip_rx_data@@@Z)
test.obj : error LNK2019: unresolved external symbol _pj_log_3 referenced in function "void __cdecl on_incoming_call(int,int,struct pjsip_rx_data *)" (?on_incoming_call@@YAXHHPAUpjsip_rx_data@@@Z)
test.obj : error LNK2019: unresolved external symbol _pj_log_get_level referenced in function "void __cdecl on_incoming_call(int,int,struct pjsip_rx_data *)" (?on_incoming_call@@YAXHHPAUpjsip_rx_data@@@Z)
test.obj : error LNK2019: unresolved external symbol _pjsua_call_get_info referenced in function "void __cdecl on_incoming_call(int,int,struct pjsip_rx_data *)" (?on_incoming_call@@YAXHHPAUpjsip_rx_data@@@Z)
test.obj : error LNK2019: unresolved external symbol _pjsua_conf_connect referenced in function "void __cdecl on_call_media_state(int)" (?on_call_media_state@@YAXH@Z)
test.obj : error LNK2019: unresolved external symbol _pjsua_call_make_call referenced in function "void __cdecl pjplacecall(void)" (?pjplacecall@@YAXXZ)
test.obj : error LNK2019: unresolved external symbol _pjsua_verify_sip_url referenced in function "void __cdecl pjplacecall(void)" (?pjplacecall@@YAXXZ)
test.obj : error LNK2019: unresolved external symbol _pjsua_call_set_hold referenced in function "void __cdecl pjhold(void)" (?pjhold@@YAXXZ)
test.obj : error LNK2019: unresolved external symbol _pjsua_call_reinvite referenced in function "void __cdecl pjreinvite(void)" (?pjreinvite@@YAXXZ)
test.obj : error LNK2019: unresolved external symbol _pjsua_call_xfer referenced in function "void __cdecl pjtransfercall(void)" (?pjtransfercall@@YAXXZ)
test.obj : error LNK2019: unresolved external symbol _pjsua_set_ec referenced in function "void __cdecl pjaec(void)" (?pjaec@@YAXXZ)
test.obj : error LNK2019: unresolved external symbol _pjsua_call_hangup_all referenced in function _main
Debug/test.dll : fatal error LNK1120: 25 unresolved externals

Build log was saved at "file://d:\soft\test\test\Debug\BuildLog.htm"
test - 26 error(s), 0 warning(s)


---------------------- Done ----------------------

    Build: 0 succeeded, 1 failed, 0 skipped

谁能告诉我可能是什么问题..
我已经在我的项目属性中添加了以下内容..

在c ++中->一般情况下,我已经包含了pjsip头文件的路径.

我正在使用Visual Studio 2003(MS开发环境2003 v7.1.3088,MS .net framework 1.1 v1.1.4322)

任何帮助都将得到很好的应用.

在此先感谢

can any one tell me what could be the problem..
i have included the following in the my project properties..

in c++ -> general,  i have included the paths of the header files of the pjsip.

i'm using visual studio 2003 (  MS devlopment environment 2003 v7.1.3088, MS .net framework 1.1 v1.1.4322 )

any help would be very well appriciated.

thanks in advance

推荐答案

您需要在链接器设置中指定导入库.
You need to specify the import libs in the linker settings.


这篇关于无法建立我的程式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆