#Linking with link.exe failed (exit code 1104)

20 messages · Page 1 of 1 (latest)

violet junco
#

I tried to compile a very simple simple script, but I keep getting this error:
https://pastebin.com/rkuKHGRy
Why does this happen? I tried looking it up and StackOverflow suggested installing Visual Studio C++ Build Tools, but the setup keeps aborting since some package can't be downloaded.
I'm at a total loss here, so any help would be appreciated 😅

carmine terrace
#

Do you have link.exe on your system? Seems like your install might be broken.

violet junco
#

I'm honestly not even sure what link.exe is supposed to be or where I should install it from ;-;
This is all new to me coming from Python

carmine terrace
#

It comes from when you instaalled C++ build tools.

#

What's line 4 of the error translate to?

#

Also what character is \x94ff supposed to be

violet junco
violet junco
carmine terrace
#

Are you able to uninstall it?

violet junco
carmine terrace
#

Does it at least give a different error if you uninstall it?

violet junco
#

I got the compiler error before and after installing the Build Tools installer

carmine terrace
#

Then there's something wrong, you should get "link.exe not found" with it uninstalled.

#

You could try manually deleting your install of VS C++ but idk if that'll help.

violet junco
#

I guess I'll try to start over with a fresh version of Rust and everything that starts with "Visual" tomorrow. Thank you for your help!

carmine terrace
#

It looks like rust is fine, it's just your VS C++ that's being weird.

violet junco
#

It definitely is :/

#

Hmm, I think it works now! I found a different installer from SO and this one seems to be doing its job :)

carmine terrace
#

that's good!

violet junco
#

Alright, it's installed now, is there anything important I should do? The error is still here 😅