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

ws 1.12 unresolved external for get_plugin_dir

0

I'm getting the following build error when trying to create my plugin

packet-gena.obj : error LNK2019: unresolved external symbol __imp__get_plugin_dir referenced in function _proto_register_gena

filesystem.h was moved to the wsutil for 1.12 according to the changelog. I can also see from the mailing list it was moved because it was more of an appropriate place. The reasons was something along the lines of filesystem is used by the system and not just dissectors. I can see by using grep that mate and wimaxasncp have an include for it. So it looks like I should still be able to link to the code.

What should I be looking at to troubleshoot this?

asked 12 Aug '14, 13:01

tlann's gravatar image

tlann
76121419
accept rate: 100%


One Answer:

1

Ensure to modify your makefile (Makefile.nmake as you seem to be running on Windows) so as to link with libwsutil.lib.

answered 12 Aug '14, 14:04

Pascal%20Quantin's gravatar image

Pascal Quantin
5.5k1060
accept rate: 30%

Thank you. That worked.

(12 Aug '14, 14:28) tlann