This is our old Q&A Site. Please post any new questions and answers at

while compiling the AMIN protocol,the command nmake all gives these errors:

packet-amin.c(78) : error C2220: warning treated as error - no 'object' file generated
packet-amin.c(78) : warning C4013: 'dissector_add' undefined; assuming extern returning int
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\Bin\cl.EXE"' : return code '0x2'.

i had removed ",0" from plugin.rc file in amin dir as suggested somewhere.but still build doesn't work. !!

asked 07 Apr '13, 23:45

ajain's gravatar image

accept rate: 0%

edited 08 Apr '13, 02:52

grahamb's gravatar image

grahamb ♦

Where does the dissector source come from, what version of Wireshark was it created for and what version of Wireshark are you attempting to compile?

(08 Apr '13, 02:52) grahamb ♦ provides the source file.i'm trying to compile it for WS 1.8.5,not sure what ver it was created for?

(08 Apr '13, 03:26) ajain

The article is dated July 2007, so that would probably have been around the 0.99.6 timeframe. A lot of water (and code) as been under the bridge since then, so the dissector may not compile in its original form with 1.8.5.

(08 Apr '13, 04:32) grahamb ♦

dissector_add() has been deprecated in fawor of dissector_add_uint().

(08 Apr '13, 04:34) Anders ♦

so no way of compiling this dissector?can u provide any other ex?where and how would i compile my dissector?

(08 Apr '13, 05:40) ajain

Have a look in the Developers Guide. It is maintained by the Wireshark Developers, so is up to date with the latest dissector practice and not just tossed over the wall and left to languish like the CodeProject dissector.

(08 Apr '13, 06:12) grahamb ♦
showing 5 of 6 show 1 more comments

Edit the packet-amin.c file and replace all occurrences of dissector_add with dissector_add_uint.

permanent link

answered 08 Apr '13, 20:13

Guy%20Harris's gravatar image

Guy Harris ♦♦
accept rate: 19%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 07 Apr '13, 23:45

question was seen: 1,846 times

last updated: 08 Apr '13, 20:13

p​o​w​e​r​e​d by O​S​Q​A