-
Notifications
You must be signed in to change notification settings - Fork 53
Description
I recently had a bit of an unfortunate experience. I spent some time cross-compiling SZ for Windows. While I couldn't compile on Windows directly, things went smoothly on Linux using MinGW to target Windows for the core libraries ... or so I thought.
- Cross-compilation worked with a few warnings
- Libraries were able to be linked
- APIs could be called
- Compression and decompression calls succeeded with no error code ... but then returned garbage
I dug around for a while and finally bumped into this older ticket: https://github.com/szcompressor/SZ/issues/58 This confirmed it won't work on Windows essentially due to sizeof(long) being different on different platforms.
When cross-compiling doesn't work for me, it usually fails much earlier than this, so I was a bit surprised it failed this late. While it would be amazing if SZ could support Window, could a small warning please be added to the front page to let folks know that Windows won't work? Thanks!