- 论坛徽章:
- 0
|
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
***************************************************************************** |
|