thunk icon indicating copy to clipboard operation
thunk copied to clipboard

thunk作为类库使用的时候怎么才能正确传递参数

Open loecomm opened this issue 6 months ago • 1 comments

enable thunk-rs when compiling for x86_64 windows

[target.x86_64-pc-windows-msvc.build-dependencies] thunk-rs = { version = "0.3.3", features = ["win7"] }

[target.i686-pc-windows-msvc.build-dependencies] thunk-rs = { version = "0.3.3", features = ["win7"] }

这样传递参数不正确的,报错编译的时候实际用的是默认的winxp

loecomm avatar Apr 24 '25 05:04 loecomm

请问在编译时提示的是什么呢

felixmaker avatar May 01 '25 11:05 felixmaker

You have to disable the default features to get win7 to work thunk-rs = { version = "0.3.5", default-features = false, features = ["win7", "subsystem_windows"] }

Result: warning: [email protected]: VC-LTL5 Enabled: 6.0.6000.0(Win32) warning: [email protected]: YY-Thunks Enabled: Win7(x86)

H1X4Dev avatar Oct 10 '25 12:10 H1X4Dev