I need to define a struct in wireshark,so i create a file named performance.h 
in wireshark main directory,


//performance.h
struct pefroamce_s{
XXXXXXXX
guint index;
}performance;


extern performance * performance_test;


then i define the  performance_test in file wiretap/libpcap.c, then i want to 
use the pointer in epan/dissectors/packet-ieee80211.c
//epan/dissectors/packet-ieee80211.c
performance_test->index=0;


it came up with an error:undefined reference to 'performance_test'


what should i do to create a struct and use it in different files?
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <[email protected]>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:[email protected]?subject=unsubscribe

Reply via email to