我发现MAC代码中的这种链接错误无法找到它们显示的原因:(。
请帮忙。
NetworkHandler::HandleSipPacket(char*, int) in networkhandler.o
"MsSipAgent::BuildSessionProgressToInvite(std::string const&)", referenced from:
NetworkHandler::HandleSipPacket(char*, int) in networkhandler.o
"MsSipAgent::Build200OkResponseToInvite(std::string const&, std::string const&)", referenced from:
NetworkHandler::HandleSipPacket(char*, int) in networkhandler.o
"MsSipAgent::BuildDeclineMessageToInvite()", referenced from:
NetworkHandler::HandleSipPacket(char*, int) in networkhandler.o
"MsSipAgent::BuildAckMessageForFinalResponse()", referenced from:
NetworkHandler::HandleSipPacket(char*, int) in networkhandler.o
"MsSipAgent::BuildReInviteRequest(std::string&)", referenced from:
NetworkHandler::SendReinvite() in networkhandler.o
"MsSipAgent::BuildByeRequestToInvite()", referenced from:
NetworkHandler::Hangup() in networkhandler.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
特别请帮助我理解这一行:
ld:找不到架构i386的符号 clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)
提前致谢。
答案 0 :(得分:2)
该行是对其前面报告的问题的总结。链接器找不到属于名为MsSipAgent
的类的许多函数。据推测,这是一些C ++的东西,你应该在你的项目中构建(或添加为库)。