Failed to find tool. Is `gcc.exe` installed

i have installed visual studio and build tools for c++, i also installed msys2 and msys2 MinGW x64 to fix this error and it's not working.


PS C:\Users\Ahmed\Desktop\rust_prog\SpaceInvador> cargo build
   Compiling minimp3-sys v0.3.2
error: failed to run custom build command for `minimp3-sys v0.3.2`

Caused by:
  process didn't exit successfully: `C:\Users\Ahmed\Desktop\rust_prog\SpaceInvador\target\debug\build\minimp3-sys-85ce72b6988f845c\build-script-build` (exit code: 1)
  --- stdout
  TARGET = Some("x86_64-pc-windows-gnu")
  OPT_LEVEL = Some("0")
  HOST = Some("x86_64-pc-windows-gnu")
  CC_x86_64-pc-windows-gnu = None
  CC_x86_64_pc_windows_gnu = None
  HOST_CC = None
  CC = None
  CFLAGS_x86_64-pc-windows-gnu = None
  CFLAGS_x86_64_pc_windows_gnu = None
  HOST_CFLAGS = None
  CFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("true")
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,llvm14-builtins-abi,sse,sse2")
  running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "minimp3/" "-Wall" "-Wextra" "-DMINIMP3_IMPLEMENTATION" "-o" "C:\\Users\\Ahmed\\Desktop\\rust_prog\\SpaceInvador\\target\\debug\\build\\minimp3-sys-70ddc8820cf4dec8\\out\\minimp3.o" "-c" "minimp3.c"

  --- stderr


  error occurred: Failed to find tool. Is `gcc.exe` installed? (see https://github.com/alexcrichton/cc-rs#compile-time-requirements for help)

i'm new to rust and i don't know what is going on

(post deleted by author)