https://bugs.winehq.org/show_bug.cgi?id=53321
--- Comment #5 from f.alexander.wilms@gmail.com f.alexander.wilms@gmail.com --- You're right, using the regular MSVC linker results in a binary which works just fine using wine-8.6 (Staging).
Meanwhile, the snakeqr code has been released under MIT license here: https://www.mattkc.com/etc/snakeqr/
Based on MattKC's video, I was able to build it myself.
Video timecode of build commands and MSVC version: https://youtu.be/ExwqNreocpg?t=748
Code with CI config to build exe: https://github.com/Alexander-Wilms/mattkc-snakeqr
build config: # Adapted from https://stackoverflow.com/a/64560687/2278742
name: Compile snake
on: - push
jobs: windows: name: run on windows runs-on: windows-2019 steps: - uses: actions/checkout@v2 - uses: ilammy/msvc-dev-cmd@v1.12.1 with: arch: x86 - name: compile run: | dir cl /c /01 /GS- snake.c dir # https://stackoverflow.com/a/53971921/2278742 link /nologo /ENTRY:main /NODEFAULTLIB /SUBSYSTEM:WINDOWS snake.obj kernel32.lib user32.lib gdi32.lib ucrt.lib dir - name: upload executable uses: actions/upload-artifact@v2 with: name: windows path: | snake.exe