Hi Tim,
Thank you for your prompt response.
I am running Code::Blocks version 20.03 on Windows 10. The compiler I use is the GNU GCC Compiler (Mingw) that was bundled with the install file (unsure of version number).
When I open a new project and attempt to build the "Hello World!" program, I receive the error messages "No such file or directory" and "error: no input files".
Build log:
-------------- Clean: Debug in Project (compiler: GNU GCC Compiler)---------------
Cleaned "Project - Debug"
-------------- Build: Debug in Project (compiler: GNU GCC Compiler)---------------
gcc.exe -o bin\Debug\Project.exe obj\Debug\main.o
gcc.exe: error: obj\Debug\main.o: No such file or directory
gcc.exe: fatal error: no input files
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
2 error(s), 0 warning(s) (0 minute(s), 0 second(s))
I have already tried a few suggestions relating to the compiler's installation directory (manually selecting the folder, auto-detection. I received confirmation that the installation path was detected each time), but this was not successful.
Please let me know if you require anything further.
Under tab projects; expand the project name Project
Right click on the source file main.c and select properties from the menu.
Select tab Build; checkmark compile leave link checked.
Click okay button
Rebuild project.
What my build log looks like
-------------- Clean: Debug in Project (compiler: GNU GCC Compiler)---------------
Cleaned "Project - Debug"
-------------- Build: Debug in Project (compiler: GNU GCC Compiler)---------------
gcc.exe -Wall -g -c H:\devel\cb_projects\test\Project\main.c -o obj\Debug\main.o
gcc.exe -o bin\Debug\Project.exe obj\Debug\main.o
Output file is bin\Debug\Project.exe with size 247.67 KB
Process terminated with status 0 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
Also make sure that you have write permission for the folder your project is into and also check if your anti virus program is disabled for the project folder and/or codeblocks executable.
gcc.exe -o bin\Debug\Project.exe obj\Debug\main.o
this path looks quite sus