This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

I got an error when compiling dissector.

0

Hi, I had followed the examples (9.1,9.2 and 9.3) given in the following link "http://www.wireshark.org/docs/wsdg_html_chunked/ChDissectAdd.html" to dissect my protocol but i got error when i compiling it on my windows.My protocol name is "TLV".

Please Help me to fix this error.


error:


packet-tlv.c(29) : error C2065: 'dissect_tlv' : undeclared identifier

packet-tlv.c(29) : warning C4047: 'function' : 'dissector_t' differs in levels o f indirection from 'int'

packet-tlv.c(29) : warning C4024: 'create_dissector_handle' : different types fo r formal and actual parameter 1

packet-tlv.c(30) : warning C4013: 'dissector_add_unit' undefined; assuming exter n returning int

plugin.c

Generating Code... NMAKE : fatal error U1077: '"C:Program FilesMicrosoft Visual Studio 9.0VCBIN cl.EXE"' : return code '0x2' Stop.

asked 26 Nov '11, 06:04

JK7's gravatar image

JK7
31111214
accept rate: 0%


One Answer:

1

The errors look like simple errors in your source which you'll need to track down and fix. :)

For example: I expect dissector_add_unit should probably be dissector_add_uint

answered 26 Nov '11, 06:21

Bill%20Meier's gravatar image

Bill Meier ♦♦
3.2k1850
accept rate: 17%