Author Topic: No such file or directory "error not input file" Build filed 2 errors  (Read 56125 times)

Offline ERBULUT

  • Single posting newcomer
  • *
  • Posts: 4
Can you help me ? I can not fix the error.




Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: No such file or directory "error not input file" Build filed 2 errors
« Reply #1 on: September 06, 2020, 12:28:45 pm »
Remove the trailing /bin in the "Compiler's installation directory" edit box

If you have more compilation problems see http://wiki.codeblocks.org/index.php/FAQ-Compiling_(errors)#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

Offline ERBULUT

  • Single posting newcomer
  • *
  • Posts: 4
Re: No such file or directory "error not input file" Build filed 2 errors
« Reply #2 on: September 06, 2020, 01:30:33 pm »
I tried it but it is not fix.


Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: No such file or directory "error not input file" Build filed 2 errors
« Reply #3 on: September 06, 2020, 01:56:48 pm »
Please copy and paste (no image) the content of the build log tab, at the bottom near the build messages, as described here: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

Offline ERBULUT

  • Single posting newcomer
  • *
  • Posts: 4
Re: No such file or directory "error not input file" Build filed 2 errors
« Reply #4 on: September 06, 2020, 03:03:32 pm »
I am so sorry.

Code
-------------- 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))
 

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: No such file or directory "error not input file" Build filed 2 errors
« Reply #5 on: September 06, 2020, 03:40:28 pm »
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

Offline ERBULUT

  • Single posting newcomer
  • *
  • Posts: 4
Re: No such file or directory "error not input file" Build filed 2 errors
« Reply #6 on: September 06, 2020, 08:02:51 pm »
Thank you for your help , ı gat it. I fixed the error,
i changed the filename and the problem was solved.
« Last Edit: September 06, 2020, 08:54:56 pm by ERBULUT »

Santi

  • Guest
Re: No such file or directory "error not input file" Build filed 2 errors
« Reply #7 on: September 02, 2021, 07:46:47 pm »
I have the same problem, how did you fix it? Please help me :'(

Offline Poruks

  • Single posting newcomer
  • *
  • Posts: 6
Re: No such file or directory "error not input file" Build filed 2 errors
« Reply #8 on: September 16, 2021, 11:52:53 pm »
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

Online stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: No such file or directory "error not input file" Build filed 2 errors
« Reply #9 on: September 17, 2021, 07:56:13 am »
If you want help post a build log!

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Poruks

  • Single posting newcomer
  • *
  • Posts: 6
Re: No such file or directory "error not input file" Build filed 2 errors
« Reply #10 on: September 17, 2021, 09:05:12 am »
Code
-------------- 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
« Last Edit: September 17, 2021, 09:16:32 am by Poruks »

Online Commaster

  • Almost regular
  • **
  • Posts: 171
Re: No such file or directory "error not input file" Build filed 2 errors
« Reply #11 on: September 17, 2021, 09:24:48 am »
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.

Offline Poruks

  • Single posting newcomer
  • *
  • Posts: 6
Re: No such file or directory "error not input file" Build filed 2 errors
« Reply #12 on: September 17, 2021, 09:53:41 am »
Code
-------------- 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
« Last Edit: September 17, 2021, 09:59:03 am by Poruks »

Online Commaster

  • Almost regular
  • **
  • Posts: 171
Re: No such file or directory "error not input file" Build filed 2 errors
« Reply #13 on: September 17, 2021, 10:17:30 am »
Looks like https://forums.codeblocks.org/index.php/topic,24123.msg164559.html#msg164559 since I can't see your source file getting used at all.

Offline Poruks

  • Single posting newcomer
  • *
  • Posts: 6
Re: No such file or directory "error not input file" Build filed 2 errors
« Reply #14 on: September 17, 2021, 10:26:04 am »
main.cpp is checked