黄登辉 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-requ...@wireshark.org?subject=unsubscribe

Reply via email to