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

Wireshark plugin LNK2019

0

Dear Wireshark-Community,

I've developed a basic dissector for a protocol. I implemented it as a standard dissector in wireshark. Everything worked pretty well, but now I want to implement this source-code as a plugin. But then I always get this error-message:

packet-rasta.obj : error LNK2019: unresolved external symbol _imp_register_dissector referenced in funktion _proto_register_rasta

packet-rasta.obj : error LNK2019: unresolved external symbol _imp_proto_register_subtree_array referenced in funktion _proto_register_rasta

...

This message appears almost at every funktion, overall 14 unresolved external symbols. I use Win7 and MSVS2010, all changes in Makefiel.am, Makefile.nmake and so on have been made and are correct. Can somebody healp me...

asked 07 Oct '13, 03:33

Marko1988's gravatar image

Marko1988
1223
accept rate: 0%

You may want to pattern your Makefile.nmake after the one in the plugins/gryphon directory. Copy those Makefiles (including Makefile.common, etc.) to your own dissector and then make only the changes needed to refer to your protocol. That's usually the cleanest way to resolve linking issues.

(14 Oct '13, 09:16) beroset