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

Hello guys,

I've developped a dissector for a "homemade" protocol. So far, everything went well, it did its job, told all the information I wanted on wireshark. Then, I tried to implement some statistics operation... And it doesn't compile anymore ! I followed the developer's guide, implemented the tap functions, the statistics functions. But it doesn't work.

Here are my error messages :

plugin.obj : error LNK2005: _version already defined in packet-subnet.obj Creating library subnet.lib and objet subnet.exp subnet.dll : fatal error LNK1169: one or more mutliply defined symbols found NMAKE : fatal error U1077 : <path to="" link.exe=""> : return code '0x491' NMAKE : fatal error U1077 : <path to="" nmake.exe=""> : return code '0x2' Stop.

If you have any idea, or suggestion, that could help getting rid of this problem, this would greatly appreciated !

Thanks in advance,

Cheers from France.

asked 29 May '12, 01:42

cosinuz's gravatar image

cosinuz
16112
accept rate: 0%


(This question was answered on the wireshark-dev mailing list. See: wireshark-dev thread).

Do you have some variable called 'version' in packet-subnet.c?
If yes rename it to some subnet_version. hth.

permanent link
This answer is marked "community wiki".

answered 29 May '12, 06:28

Bill%20Meier's gravatar image

Bill Meier ♦♦
3.2k1850
accept rate: 17%

edited 30 May '12, 11:08

multipleinterfaces's gravatar image

multipleinte...
1.3k152340

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×637
×158
×86
×19

question asked: 29 May '12, 01:42

question was seen: 3,303 times

last updated: 30 May '12, 11:08

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