#MinGW is unable to compile test program

2 messages · Page 1 of 1 (latest)

zealous slate
#

Hello, so i am attempting to build a hello world program with raylib in the cargo.toml, thats it. But im getting this issue

 CMake Error at C:/Program Files/CMake/share/cmake-3.26/Modules/CMakeTestCCompiler.cmake:67 (message):
    The C compiler

      "C:/MinGW/bin/gcc.exe"

    is not able to compile a simple test program.

    It fails with the following output:

      Change Dir: C:/Users/antho/OneDrive/Documents/Code/Rust/Flux/target/debug/build/raylib-sys-25983c6ebdd0041f/out/build/CMakeFiles/CMakeScratch/TryCompile-l5z1ut      

      Run Build Command(s):C:/MinGW/bin/make.exe -f Makefile cmTC_8f6b3/fast && C:/MinGW/bin/make.exe  -f CMakeFiles/cmTC_8f6b3.dir/build.make CMakeFiles/cmTC_8f6b3.dir/build
      make.exe[1]: Entering directory 'C:/Users/antho/OneDrive/Documents/Code/Rust/Flux/target/debug/build/raylib-sys-25983c6ebdd0041f/out/build/CMakeFiles/CMakeScratch/TryCompile-l5z1ut'
      The system cannot find the path specified.
      CMakeFiles/cmTC_8f6b3.dir/build.make:77: recipe for target 'CMakeFiles/cmTC_8f6b3.dir/testCCompiler.c.obj' failed
      make.exe[1]: *** [CMakeFiles/cmTC_8f6b3.dir/testCCompiler.c.obj] Error 1
      make.exe[1]: Leaving directory 'C:/Users/antho/OneDrive/Documents/Code/Rust/Flux/target/debug/build/raylib-sys-25983c6ebdd0041f/out/build/CMakeFiles/CMakeScratch/TryCompile-l5z1ut'
      Makefile:127: recipe for target 'cmTC_8f6b3/fast' failed
      make.exe: *** [cmTC_8f6b3/fast] Error 2
#

Im not sure if there is any more information i can give. Just ask and ill provide