0

On a windows 11 machine. I ran cargo build and received this error:

error: linking with `x86_64-w64-mingw32-gcc` failed: exit code: 1

I am using `rusqlite:"0.29.0", and this is my tomo file

[package]
name = "backend-rust"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
rusqlite = "0.29.0"

Do you know why I am getting this error?

I am trying to use the rusqlite crate, and my code appears to be fine and matches the documentation. However, I cannot get this to run.

  • You're getting this error because "linking with `x86_64-w64-mingw32-gcc` failed" for more info we need a [mre] and the full error message. Taking the [tour] helps you get started wiith how this site works, there is also a lot of info available in [ask] that can help you imporve your question so it's more likely you get an answer. – cafce25 Apr 23 '23 at 23:10

0 Answers0