Wireshark mailing list archives
Re: Keep getting "unresolved external symbol" error when trying to use "summary_fill_in"
From: Anders Broman <a.broman () bredband net>
Date: Wed, 22 May 2013 07:30:16 +0200
Richard Turner skrev 2013-05-22 07:19:
Hello,I'm trying to implement the statistics summary window in QtShark, but when I use these two functions I keep getting LNK2019 "unresolved external symbol" error from my VS2010 compiler:summary_fill_in(&cfile, &summary); summary_fill_in_capture(&cfile, &global_capture_opts, &summary); both are located in summary.cI've tested using the two functions in main.cpp(which properly included the headers needed), and I got the same link error.The headers I've included are as follows: #include <string.h> #include <time.h> #include "config.h" #include <glib.h> #include "qt_ui_utils.h" #include <epan/strutil.h> #include <wiretap/wtap.h> #include "globals.h" #include "file.h" #include "summary.h" #include "version_info.h" #ifdef HAVE_LIBPCAP #include "../capture.h" #include "ui/capture_globals.h" #include "../capture-pcap-util.h" #endif Regards,
Try changing summary.h as follows WS_DLL_PUBLIC extern void summary_fill_in(capture_file *cf, summary_tally *st); #ifdef HAVE_LIBPCAP WS_DLL_PUBLIC extern voidsummary_fill_in_capture(capture_file *cf, capture_options *capture_opts, summary_tally *st);
#endif Regards Anders
___________________________________________________________________________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
___________________________________________________________________________ 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:
- Keep getting "unresolved external symbol" error when trying to use "summary_fill_in" Richard Turner (May 21)
- Re: Keep getting "unresolved external symbol" error when trying to use "summary_fill_in" Anders Broman (May 21)
- Re: Keep getting "unresolved external symbol" error when trying to use "summary_fill_in" Pascal Quantin (May 21)
- Re: Keep getting "unresolved external symbol" error when trying to use "summary_fill_in" Richard Turner (May 22)
- Re: Keep getting "unresolved external symbol" error when trying to use "summary_fill_in" Alexis La Goutte (May 22)
- Re: Keep getting "unresolved external symbol" error when trying to use "summary_fill_in" Guy Harris (May 22)
- Re: Keep getting "unresolved external symbol" error when trying to use "summary_fill_in" Richard Turner (May 22)
- Re: Keep getting "unresolved external symbol" error when trying to use "summary_fill_in" Pascal Quantin (May 21)
- Re: Keep getting "unresolved external symbol" error when trying to use "summary_fill_in" Guy Harris (May 22)
- Re: Keep getting "unresolved external symbol" error when trying to use "summary_fill_in" Anders Broman (May 21)