#Change entry point of cdylib
33 messages · Page 1 of 1 (latest)
are you sure the issue is coming from that?
anyhow, after some quick googling (i dont know whether it will work or not), https://docs.rs/link_args/latest/link_args/windows/macro.raw.html has an example seemingly doing the same thing as you
Embeds raw linker arguments for Windows targets.
i cant really be of much more help, as i have to go run errands but i wish you good luck
This post has the same error message, on my phone so not sure if it is exactly the same situation, but might help. https://users.rust-lang.org/t/linking-with-link-exe-failed-exit-code-1120/107163
Hello, I am trying to do a simple led blink project from git .When i try to "cargo build" I get an error linking with "link.exe" failed: exit code 1120. Has any of you had that problem before ? I tried to look it up on the forums but there doesn't seem te be a solution for this. This is my command promp output: C:\Users\Peter\Desktop\delete...
@random hedge is your cdylib project no_std?
Is your project a no_std?
Welp I should have scrolled down
For curiosity does adding
#[link(name = "vcruntime")]
extern {}
#[link(name = "ucrt")]
extern {}
Remove any of the link errors?
A lot of them look like runtime symbols
are u sure ur project is not no_std
Do all of them get resolved?
btw what game are u devving cheats for
lol
cuz vcruntime exports all those symbols
My guess is the windows linker is turning off it's normal system dependencies, but I don't know window's linking enough
for things to work properly
On a side note, because of discord 's terms of service we can't help with explicit cheat creation. So please refrain from posting in the future with this context
btw im p sure u can also use this https://crates.io/crates/compiler_builtins
it doesnt
Normally it would be linking these libraries by itself
Why it doesn't here is 🤷♂️
Yeah it's Microsoft's "universal c runtime"
And the vcruntime is the visual c++ runtime
Not sure what this means