79495217

Date: 2025-03-09 00:16:43
Score: 2
Natty:
Report link

Because rustc can't find the linker, you can either:

  1. install a linker that can be found by rustc (On debian `apt install build-essential` installs the linker)

  2. Point to an existing linker e.g.,:

    rustc -C linker=target_toolchain_linker my_rustfile.rs
    

References:

  1. https://github.com/rust-lang/cargo/issues/1109
  2. How do I fix the Rust error "linker 'cc' not found" for Debian on Windows 10?
Reasons:
  • Blacklisted phrase (1): How do I
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: A. K.