MINGW compiled static wireshark .a libs linking issue

asked 2023-08-16 09:00:27 +0000

Taimoor gravatar image

updated 2023-08-16 09:49:05 +0000

grahamb gravatar image

I have compiled wireshark-3.6.8 source code statically to generate .a files, with MINGW toolchain. I am linking libwireshark.a, libwiretap.a & libwsutil.a in my standalone project. But facing linking errors. If I build wireshark with visual studio toolchain then it creates.lib files which successfully linked to my project but I specifically want to link MINGW compiled static .a wireshark libraries with my project. Please guide about this issue.

C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\libav_ws_win.dir/objects.a(ethereal_data_parser.cpp.obj):ethereal_data_parser.cpp:(.text+0x6f): undefined reference to `__imp_frame_data_init'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\libav_ws_win.dir/objects.a(ethereal_data_parser.cpp.obj):ethereal_data_parser.cpp:(.text+0xa1): undefined reference to `__imp_epan_dissect_new'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\libav_ws_win.dir/objects.a(ethereal_data_parser.cpp.obj):ethereal_data_parser.cpp:(.text+0x1d5): undefined reference to `__imp_wmem_list_new'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\libav_ws_win.dir/objects.a(ethereal_data_parser.cpp.obj):ethereal_data_parser.cpp:(.text+0x1ea): undefined reference to `__imp_tvb_new_real_data'
edit retag flag offensive close merge delete