#Change entry point of cdylib

33 messages · Page 1 of 1 (latest)

slim mountain
#

I'm not familiar with Windows linkage, but to me this doesn't look like a Rust-specific issue

frank forge
#

are you sure the issue is coming from that?

#

i cant really be of much more help, as i have to go run errands but i wish you good luck

tired cave
#

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

The Rust Programming Language Forum

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...

quaint surge
#

@random hedge is your cdylib project no_std?

pallid laurel
#

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

quaint surge
#

are u sure ur project is not no_std

pallid laurel
#

Do all of them get resolved?

quaint surge
#

btw what game are u devving cheats for

#

lol

#

cuz vcruntime exports all those symbols

pallid laurel
#

My guess is the windows linker is turning off it's normal system dependencies, but I don't know window's linking enough

quaint surge
#

for things to work properly

pallid laurel
#

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

quaint surge
#

it doesnt

pallid laurel
#

Normally it would be linking these libraries by itself

#

Why it doesn't here is 🤷‍♂️

quaint surge
#

c runtime library

pallid laurel
#

Yeah it's Microsoft's "universal c runtime"

pallid laurel
#

And the vcruntime is the visual c++ runtime

pallid laurel
#

Not sure what this means

quaint surge
#

yea same

#

ok

#

nope