jayrod246 / open3DMM

rewriting 3D Movie Maker from source
https://www.open3dmm.com
MIT License
20 stars 1 forks source link

Recent Zig versions do not detect WinMain. #8

Closed jayrod246 closed 5 months ago

jayrod246 commented 7 months ago

Zig version: 0.12.0-dev.2341+92211135f Build target: x86-windows-gnu

Executing zig build now fails with:

error: lld-link: undefined symbol: _main

Seems to be a fairly recent regression. Workaround for now is replacing WinMain with main instead, and passing the necessary Windows parameters.

jayrod246 commented 5 months ago

Closed by https://github.com/ziglang/zig/pull/19399

Builds successful again on Zig version: 0.12.0-dev.3493+3661133f9