Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] plugin error during build

From: Anders Broman <a.broman@xxxxxxxxxxxx>
Date: Sat, 16 Feb 2013 22:13:24 +0100
Fabio Tarabelloni skrev 2013-02-16 20:54:
Hi,

I'm working in order to improve a zigbee dissector.
I created two new files(in epan/dissector folder): zbee-zcl-on-off.c and zbee-zcl-on-off.h. 
The .c file includes zbee-zcl.h file because the zbee-zcl-on-off.c needs 2 functions written in the zbee-zcl.c file.
I built my wireshark working copy and it works fine. New dissector decodes the packets as I want.

My idea is to convert my new dissector to plugin:
I moved the sources file into the specific folder and I followed the rules written in the README.plugins file.
But when I build the plugin I have an error (fatal error: LNK1220) the linker doesn't know the 2 functions included in the zbee-zcl.h file.

The plugin files are in the plugins/zbee_zcl_on_off folder and in zbee-zcl-on-off.c file I have included the header file as <epan/dissectors/zbee-zcl.h>
But I don't undestand why build failed.

Any suggestions?
You need to add the functions to libwireshark.def but if you are offering your dissector to Wireshark you ar better off keeping it a built in dissector.
BR
Fabio.




___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe