红联Linux门户
Linux帮助

RTP的jrtplib库编程,应用程序编译报错

发布时间:2010-12-08 13:07:37来源:红联作者:zhouzhuan2008
大家好,麻烦帮我看一下这是为什么,编程方式是我按照网上说的做的,但报这几个错误,我找了好久也不知道是为什么,麻烦你们帮我看看 谢谢啦
[root@localhost C++]# g++ -o send send.C -I /usr/local/include/jrtplib3/
send.C: In function ‘void checkerror(int)’:
send.C:24: 错误:不能将 ‘std::string’ 转换为 ‘char*’,在 initialization 中
send.C: In function ‘int main(int, char**)’:
send.C:56: 错误:对 ‘RTPSession::Create(int)’ 的调用没有匹配的函数
/usr/local/include/jrtplib3/rtpsession.h:89: 附注:备选为: int RTPSession::Create(const RTPSessionParams&, const RTPTransmissionParams*, RTPTransmitter::TransmissionProtocol)
/usr/local/include/jrtplib3/rtpsession.h:98: 附注: int RTPSession::Create(const RTPSessionParams&, RTPTransmitter*)
send.C:60: 错误:对 ‘RTPSession::AddDestination(long unsigned int&, int&)’ 的调用没有匹配的函数
/usr/local/include/jrtplib3/rtpsession.h:117: 附注:备选为: int RTPSession::AddDestination(const RTPAddress&)
send.C:67: 错误:‘class RTPSession’ 没有名为 ‘SetDefaultTimeStampIncrement’ 的成员
[root@localhost C++]#
文章评论

共有 2 条评论

  1. 于 2012-05-08 11:20:35发表:

    求解,也遇到相同问题

  2. mg271603433 于 2011-01-05 17:57:16发表:

    顶一个。