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] make a extension for packet-sctp.c, meet a problem.

From: Jeff Morriss <jeff.morriss.ws@xxxxxxxxx>
Date: Wed, 30 May 2012 09:10:13 -0400
黄登辉 wrote:
Hi
I meet a problem, i define a global variable e.g. g_sctp_packet_analyzing_debug in packet-sctp.c, then we want to access it in tshark.c. even make a statement in tshark.c, i still meet link error undefined reference to `g_sctp_packet_analyzing_debug. i know it should be linked with packet-sctp.o, but seems that wireshark compile system don't generate object file packet-sctp.o, i am not familiar with wireshark compile system.
Any expert can help me this out? thanks.

Any symbols put in libwireshark (e.g., from packet-sctp.c) need to be exported by being listed in epan/libwireshark.def . (That file used to be only for Win32, but now *NIX builds also use it.)