-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build fails on MinGW under WSL1 #44
Comments
Welp I added a bunch of hacks and now I'm getting a duplicate symbol linker error:
Looks like Kaitai can't be used on windows, or at least, not on MinGW. |
Yes, but the runtime is currently only adapted for the Microsoft Visual C++ compiler to work out of the box. See kaitai_struct_cpp_stl_runtime/kaitai/kaitaistream.cpp Lines 12 to 23 in cb09b3a
I agree. Pull requests are welcome - if you figure out what to add to the top of
You have presumably already figured out until now where to get both
I think this is more related to MinGW than the KS C++/STL runtime library itself. Do you use an up-to-date MinGW compiler? Does this happen also on other projects? If I search for this error, it seems that people resolve it by passing some additional command-line options when compiling. |
For me adding || defined(MINGW32) next to the _MSC_VER worked on Mingw on Windows:
|
It appears this has been an issue on MacOS before. Is Windows even supported?
Compiling with Mingw W64 under WSL1.
Going to try using https://github.com/mikepb/endian.h/blob/master/endian.h to see if this "fixes" it but it'd be nice if there was explicit support for Windows.
EDIT: Yes, but then there's a missing
byteswap.h
.The text was updated successfully, but these errors were encountered: