rikyoz / bit7z

A C++ static library offering a clean and simple interface to the 7-zip shared libraries.
https://rikyoz.github.io/bit7z
Mozilla Public License 2.0
602 stars 110 forks source link

[Bug]: Mingw cross compile fails #222

Closed yildiz-online closed 1 week ago

yildiz-online commented 2 weeks ago

bit7z version

4.0.x

Compilation options

No response

7-zip version

v23.01

7-zip shared library used

7z.dll / 7z.so

Compilers

MinGW

Compiler versions

No response

Architecture

x86_64

Operating system

Linux

Operating system versions

No response

Bug description

Cross compiling from linux to windows is leading to: /bit7z/bitwindows.hpp:21:10: fatal error: Windows.h: No such file or directory

Renaming to #include fixes the issue.

Steps to reproduce

No response

Expected behavior

No response

Relevant compilation output

No response

Code of Conduct

rikyoz commented 1 week ago

Hi! Thank you for reporting this issue. I just pushed a commit to the master branch that fixes it.

yildiz-online commented 1 week ago

Thank you! Issue can be closed as fixed.