felixmaker / thunk

Build Rust program to support Windows XP, Vista and more
MIT License
26 stars 4 forks source link

编译 Slint 项目指定 subsystem 为 windows 报错 #7

Closed felixmaker closed 1 year ago

felixmaker commented 1 year ago

感谢 @京城逐梦 @被子飞了 和其他群友测试,看样子问题出现在:https://rust-lang.github.io/rfcs/1665-windows-subsystem.html

解决方法是指定 SUBSYSTEM 之后再加上 /ENTRY:mainCRTStartup,见 RFC 1665:

The second part of the solution is to pass an additional linker option when targeting the MSVC toolchain: /ENTRY:mainCRTStartup

felixmaker commented 1 year ago

v0.2.3 添加 /ENTRY:mainCRTStartup 支持