kaitai_struct_cpp_stl_runtime icon indicating copy to clipboard operation
kaitai_struct_cpp_stl_runtime copied to clipboard

Add mingw support

Open GreyCat opened this issue 2 years ago • 0 comments

This adds compilation and test running validation for Mingw on Windows using GitHub Actions CI. The implementation itself is pretty straightforward, as default GH Actions Windows image has Mingw 11.0 preinstalled.

Compilation issues

  • Current codebase of kaitaistream.h fails to compile on Mingw build due to picking wrong endianness handling define (see #44 for bug report and #45 for previous attempt to fix it).
  • While compiling with KS_STR_ENCODING_NONE, src_enc parameter in kaitai::kstream::bytes_to_str is unused and compiler complains about that. Silenced it using https://stackoverflow.com/a/1486931 (which is ancient, but works).

GreyCat avatar Jun 16 '23 16:06 GreyCat