免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3533 | 回复: 2
打印 上一主题 下一主题

jrtplib的编译问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-10-30 10:33 |只看该作者 |倒序浏览
3.5.2版本的 jrtplib      自给编个example都可以了   但是加到另外一个c程序里面就不行了
下面是错误   达人帮忙分析一下啊   



******************************************************************************
[root@localhost nets]# make
#CC -g  'gtk-config --cflags' nets.cpp -o @ 'gtk-config --libs' -Wl,-rpath,/usr/local/lib -lSDL -lpthread -ltmnets -lds40xxsdk -ljrtp
g++ -g  `gtk-config --cflags` nets.cpp -o nets `gtk-config --libs` -Wl,-rpath,/usr/local/lib -lSDL -lpthread -ltmnets -lds40xxsdk -libjrtp
In file included from rtppacketbuilder.h:41,
                 from rtpsession.h:39,
                 from nets.cpp:19:
rtptimeutilities.h:63: declaration does not declare anything
rtptimeutilities.h:63: storage class specified for typename
rtptimeutilities.h:63: parse error before numeric constant
rtptimeutilities.h:162: parse error before numeric constant
rtptimeutilities.h:166: `tv' was not declared in this scope
rtptimeutilities.h:166: ISO C++ forbids declaration of `gettimeofday' with no
   type
rtptimeutilities.h:166: `int gettimeofday' redeclared as different kind of
   symbol
/usr/include/sys/time.h:74: previous declaration of `int gettimeofday(timeval*,
   timezone*)'
rtptimeutilities.h:166: initializer list being treated as compound expression
rtptimeutilities.h:167: parse error before `return'
In file included from rtpsources.h:39,
                 from rtpsessionsources.h:38,
                 from rtpsession.h:40,
                 from nets.cpp:19:
rtcpsdespacket.h:50: parse error before numeric constant
rtcpsdespacket.h:50: missing ';' before right brace
rtcpsdespacket.h:48: base `RTCPPacket' with only non-default constructor in
   class without a constructor
rtcpsdespacket.h:52: parse error before `*' token
rtcpsdespacket.h:53: destructors must be member functions
rtcpsdespacket.h:55: non-member function `int GetChunkCount()' cannot have `
   const' method qualifier
rtcpsdespacket.h:60: non-member function `uint32_t GetChunkSSRC()' cannot have
   `const' method qualifier
rtcpsdespacket.h:64: parse error before `)' token
rtcpsdespacket.h:65: non-member function `size_t GetItemLength()' cannot have `
   const' method qualifier
rtcpsdespacket.h:69: non-member function `size_t GetPRIVPrefixLength()' cannot
   have `const' method qualifier
rtcpsdespacket.h:71: non-member function `size_t GetPRIVValueLength()' cannot
   have `const' method qualifier
rtcpsdespacket.h:78: parse error before `private'
rtcpsdespacket.h:82: parse error before `}' token
rtcpsdespacket.h:85: no `int RTCPSDESPacket::GetChunkCount() const' member
   function declared in class `RTCPSDESPacket'
rtcpsdespacket.h:93: no `bool RTCPSDESPacket::GotoFirstChunk()' member function
   declared in class `RTCPSDESPacket'
rtcpsdespacket.h: In member function `bool RTCPSDESPacket::GotoFirstChunk()':
rtcpsdespacket.h:96: `currentchunk' undeclared (first use this function)
rtcpsdespacket.h:96: (Each undeclared identifier is reported only once for each
   function it appears in.)
rtcpsdespacket.h: At global scope:
rtcpsdespacket.h:106: no `bool RTCPSDESPacket::GotoNextChunk()' member function
   declared in class `RTCPSDESPacket'
rtcpsdespacket.h:133: no `uint32_t RTCPSDESPacket::GetChunkSSRC() const' member
   function declared in class `RTCPSDESPacket'
rtcpsdespacket.h:143: no `bool RTCPSDESPacket::GotoFirstItem()' member function
   declared in class `RTCPSDESPacket'
rtcpsdespacket.h:156: no `bool RTCPSDESPacket::GotoNextItem()' member function
   declared in class `RTCPSDESPacket'
rtcpsdespacket.h:177: no `RTCPSDESPacket::ItemType
   RTCPSDESPacket::GetItemType() const' member function declared in class `
   RTCPSDESPacket'
rtcpsdespacket.h: In member function `RTCPSDESPacket::ItemType
   RTCPSDESPacket::GetItemType() const':
rtcpsdespacket.h:177: return type `enum RTCPSDESPacket::ItemType' is incomplete
rtcpsdespacket.h:179: cannot convert `long int' to `RTCPSDESPacket::ItemType'
   in return
rtcpsdespacket.h:181: cannot convert `long int' to `RTCPSDESPacket::ItemType'
   in return
rtcpsdespacket.h:186: cannot convert `long int' to `RTCPSDESPacket::ItemType'
   in return
rtcpsdespacket.h:188: `CNAME' undeclared (first use this function)
rtcpsdespacket.h:190: `NAME' undeclared (first use this function)
rtcpsdespacket.h:192: `EMAIL' undeclared (first use this function)
rtcpsdespacket.h:194: `PHONE' undeclared (first use this function)
rtcpsdespacket.h:196: `LOC' undeclared (first use this function)
rtcpsdespacket.h:198: `TOOL' undeclared (first use this function)
rtcpsdespacket.h:200: `NOTE' undeclared (first use this function)
rtcpsdespacket.h:202: `PRIV' undeclared (first use this function)
rtcpsdespacket.h:204: cannot convert `RTCPPacket:acketType' to `
   RTCPSDESPacket::ItemType' in return
rtcpsdespacket.h:206: cannot convert `RTCPPacket:acketType' to `
   RTCPSDESPacket::ItemType' in return
rtcpsdespacket.h: At global scope:
rtcpsdespacket.h:210: no `size_t RTCPSDESPacket::GetItemLength() const' member
   function declared in class `RTCPSDESPacket'
rtcpsdespacket.h:222: no `uint8_t* RTCPSDESPacket::GetItemData()' member
   function declared in class `RTCPSDESPacket'
rtcpsdespacket.h:235: no `size_t RTCPSDESPacket::GetPRIVPrefixLength() const'
   member function declared in class `RTCPSDESPacket'
rtcpsdespacket.h:253: no `uint8_t* RTCPSDESPacket::GetPRIVPrefixData()' member
   function declared in class `RTCPSDESPacket'
rtcpsdespacket.h:273: no `size_t RTCPSDESPacket::GetPRIVValueLength() const'
   member function declared in class `RTCPSDESPacket'
rtcpsdespacket.h:291: no `uint8_t* RTCPSDESPacket::GetPRIVValueData()' member
   function declared in class `RTCPSDESPacket'
nets.cpp:207:46: warning: multi-character character constant
nets.cpp:207:52: warning: multi-character character constant
nets.cpp:207:58: warning: multi-character character constant
nets.cpp: In function `void motion_detect(int)':
nets.cpp:586: warning: passing `float' for argument passing 4 of `void
   gdk_draw_rectangle(GdkDrawable*, GdkGC*, int, int, int, int, int)'
nets.cpp:586: warning: argument to `int' from `float'
nets.cpp:586: warning: passing `float' for argument passing 5 of `void
   gdk_draw_rectangle(GdkDrawable*, GdkGC*, int, int, int, int, int)'
nets.cpp:586: warning: argument to `int' from `float'
nets.cpp:586: warning: passing `float' for argument passing 6 of `void
   gdk_draw_rectangle(GdkDrawable*, GdkGC*, int, int, int, int, int)'
nets.cpp:586: warning: argument to `int' from `float'
nets.cpp:586: warning: passing `float' for argument passing 7 of `void
   gdk_draw_rectangle(GdkDrawable*, GdkGC*, int, int, int, int, int)'
nets.cpp:586: warning: argument to `int' from `float'
nets.cpp:608: warning: passing `float' for argument passing 4 of `void
   gdk_draw_rectangle(GdkDrawable*, GdkGC*, int, int, int, int, int)'
nets.cpp:608: warning: argument to `int' from `float'
nets.cpp:608: warning: passing `float' for argument passing 5 of `void
   gdk_draw_rectangle(GdkDrawable*, GdkGC*, int, int, int, int, int)'
nets.cpp:608: warning: argument to `int' from `float'
nets.cpp:608: warning: passing `float' for argument passing 6 of `void
   gdk_draw_rectangle(GdkDrawable*, GdkGC*, int, int, int, int, int)'
nets.cpp:608: warning: argument to `int' from `float'
nets.cpp:608: warning: passing `float' for argument passing 7 of `void
   gdk_draw_rectangle(GdkDrawable*, GdkGC*, int, int, int, int, int)'
nets.cpp:608: warning: argument to `int' from `float'
nets.cpp: In function `int process_time(void*)':
nets.cpp:1026: warning: assignment to `int' from `gdouble'
nets.cpp:1026: warning: argument to `int' from `gdouble'
nets.cpp:1028: warning: assignment to `int' from `gdouble'
nets.cpp:1028: warning: argument to `int' from `gdouble'
make: *** [nets] Error 1

*****************************************************************************

论坛徽章:
0
2 [报告]
发表于 2006-10-30 21:02 |只看该作者
我顶啊   达人帮帮忙

论坛徽章:
0
3 [报告]
发表于 2006-10-31 15:50 |只看该作者
    怎么没人看啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP