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

error LNK2005 and LNK1169

1

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%


One Answer:

1

(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.

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