News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

No such file or directory "error not input file" Build filed 2 errors

Started by ERBULUT, September 06, 2020, 11:06:09 AM

Previous topic - Next topic

ERBULUT


Miguel Gimenez


ERBULUT


BlueHazzard


ERBULUT

I am so sorry.


-------------- Build: Debug in deneme3 (compiler: GNU GCC Compiler)---------------

gcc.exe  -o bin\Debug\deneme3.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))


BlueHazzard

Have you modified the project?

Lets try to fix it:
Project->Properties->Build targets->Build target files -> Is main.cpp checked?

Have you tried a new project? Without modification?
Does the path to your project has special characters, like non english or spaces?

Edit:
Have you tried a rebuild: Build->Rebuild?

Please post always a build log if you can

greetings

ERBULUT

Thank you for your help , ı gat it. I fixed the error,
i changed the filename and the problem was solved.

Santi

I have the same problem, how did you fix it? Please help me :'(

Poruks

Exact same thing happening to me. Tried with a fresh windows install, downloaded codeblocks-20.03mingw-setup.exe and can't even run the "Hello world" program. No weird file names, compiler directory is correct, everything that should be checked is checked

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Poruks


-------------- Build: Debug in tyew (compiler: GNU GCC Compiler)---------------

g++.exe  -o bin\Debug\tyew.exe obj\Debug\main.o   
g++.exe: error: obj\Debug\main.o: No such file or directory
g++.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))



There have been a few times after restarting my computer when i was able to run a program. Once the time comes when i can't run a program it stays like that forever until i restart my computer. Around 20% of my restarts result in me being able to run a program 1-3 times before everything goes to shit and i have to restart

Commaster

Do you have any antivirus or temporary-files-cleaning software installed and possibly running/checking regularly?

Please press the Rebuild button (2 circling arrows) and post the full build log for that.

Poruks


-------------- Clean: Debug in fhghgh (compiler: GNU GCC Compiler)---------------

Cleaned "fhghgh - Debug"

-------------- Build: Debug in fhghgh (compiler: GNU GCC Compiler)---------------

g++.exe  -o bin\Debug\fhghgh.exe obj\Debug\main.o   
g++.exe: error: obj\Debug\main.o: No such file or directory
g++.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 no anti-virus installed. Tried turning off everything in Windows Security Centre and it didn't do anything