thunk
thunk copied to clipboard
thunk作为类库使用的时候怎么才能正确传递参数
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
请问在编译时提示的是什么呢
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)