mingw32-gcc.exe -c C:\Users\Swashia\Desktop\swashia\main.c -o C:\Users\Swashia\Desktop\swashia\main.o
mingw32-gcc.exe: error: CreateProcess: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
From the windows command line try this.
SET MINGWTOOLCHAIN=C:\mingw
SET CBPROJECTFOLDER=C:\Users\Swashia\Desktop\swashia
SET PATH=%MINGWTOOLCHAIN%\bin;%PATH%
CD /d %CBPROJECTFOLDER%
mingw32-gcc.exe -c main.c -o main.o
If you get an error post the error.
If it works then likely your MinGW GCC installation is OK.
Tim S.