Wireshark mailing list archives

Re: make a extension for packet-sctp.c, meet a problem.


From: Jeff Morriss <jeff.morriss.ws () gmail com>
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.)
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
            mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: