ternimal icon indicating copy to clipboard operation
ternimal copied to clipboard

When building get error: `linking with `cc` failed: exit code: 1` (technically a Rust issue)

Open RyanNerd opened this issue 4 years ago • 0 comments

Technically this is a Rust issue but thought I'd put it here so if anyone is trying to figure out how to fix it I'm using Linux Mint 20.1 and this is what I get when I try to build:

rustc -O ternimal.rs     
error: linking with `cc` failed: exit code: 1

Solution: sudo apt-get install libfreetype6-dev

If that doesn't work try installing cmake: sudo apt install cmake

RyanNerd avatar Apr 24 '21 23:04 RyanNerd