Can you help me ? I can not fix the error.
(https://i.hizliresim.com/BzacAw.png) (https://hizliresim.com/BzacAw)
(https://i.hizliresim.com/TdN21S.png) (https://hizliresim.com/TdN21S)
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 (http://wiki.codeblocks.org/index.php/FAQ-Compiling_(errors)#Q:_How_do_I_troubleshoot_a_compiler_problem.3F)
I tried it but it is not fix.
(https://i.hizliresim.com/n0m8IY.png) (https://hizliresim.com/n0m8IY)
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
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))
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
Thank you for your help , ı gat it. I fixed the error,
i changed the filename and the problem was solved.
I have the same problem, how did you fix it? Please help me :'(
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
If you want help post a build log!
Tim S.
-------------- 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
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.
-------------- 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
Looks like https://forums.next.codeblocks.org/index.php/topic,24123.msg164559.html#msg164559 since I can't see your source file getting used at all.
main.cpp is checked
Quote from: Poruks on September 17, 2021, 10:26:04 AM
main.cpp is checked
Verify both compile and link of main.cpp is enabled.
Right click on main.cpp
options -> enable both
Tim S.
They are both enabled :/
I tried out some new things in this time. Tried installing codeblocks 17.12 because i saw my university computers were running that version. When i tried compiling a program there codeblocks just crashed to desktop without any error message. When uninstalling 17.12 everything was deleted but the MinGW folder and it's contents couldnt be deleted without a restart.(might not be meaningful to my issue but worth mentioning.)
I also tried installing the Codeblocks version that doesnt come with MinGW and installed MinGW from another source. Both installations were successful and Code blocks autodetected the MinGW directory. I got the same error message as i do with the pre-packaged compiler.
Could it just be that my computer isn't compatible with something? I am using a Lenovo Legion 5 with Ryzen 5 4600H and GTX 1650 TI. Also using the newest 64bit version of Windows 10 pro
Can you attach the .CBP file?
I did another fresh Windows reinstall and Code Blocks is working for now. Thanks for the people who tried to help, i'll try to not disturb the balance and hope it continues to work. Trying to get this to work was way to stressful and time consuming lmao
hi, i'm a bigginer at coding in general and wanted to learn c++ and i can't even run the initial program of "hello world"given with the code::blocks compiler
build log:
-------------- Build: Debug in myfirstprogram (compiler: GNU GCC Compiler)---------------
g++.exe -o bin\Debug\myfirstprogram.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))
please can anyone help me?? i'm losing my mind i haven't even started coding....
I suggest you start by looking in the C::B manual:
https://www.codeblocks.org/user-manual/
Post a full rebuild log in code tags, see this (https://forums.next.codeblocks.org/index.php/topic,24644.msg168159.html#msg168159) for help
Dear All,
By standard i use Visual Code for porgramming on Linux Machines, but want to try out Code::Blocks.
Well i have the same issue with the build in example under Debian 11.
I checked the log message and did the same compiling steps by hand via xterm... and it works like it should. :D
So it seems that the origin of this issue depends on Code::Blocks.
When i checked the directorys of the project, i recognized that there is no main.o file generated in the <obj\Debug> directory.
Maybe the settings in the compiler options could be the reason ?!
Regards
Have you checked the access rights in the project folder?
Can you share your project?
can you reproduce it with a minimal hello world project?
Hi All,
I think i have found a solution for me regarding this issue.
Situation is/was that i normally use an account with root-rights on my development machine (to make some things easier).
I reminded that i had a similar issue with root-rights with another software some time ago.
So i have setup a new user with 'non-root-rights' and well, .... now it works... ;)
Regards
Check that the name of the folder that content your program is correct (whithout special character)
please help for this error in code blocks
-------------- Build: Debug in 1 (compiler: GNU GCC Compiler for AVR)---------------
avr-gcc.exe -Wall -mmcu=atmega8 -DF_CPU=16000000UL -g -IC:\WinAVR\avr\include -c fuse.c -o obj\Debug\fuse.o
avr-gcc.exe -Wall -mmcu=atmega8 -DF_CPU=16000000UL -g -IC:\WinAVR\avr\include -c main.c -o obj\Debug\main.o
avr-gcc.exe -LC:\WinAVR\avr\lib -o bin\Debug\1.elf obj\Debug\fuse.o obj\Debug\main.o -mmcu=atmega8 -Wl,-Map=bin\Debug\1.map,--cref
avr-gcc.exe: fatal error: cannot read spec file 'device-specs/specs-atmega8': No such file or directory
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
avr-gcc.exe: fatal error: cannot read spec file 'device-specs/specs-atmega8': No such file or directory
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))
To hs:
-mmcu=atmega8
The above is likely wrong.
You likely want
-mmcu=avr4 along with
-D__AVR_ATmega8__
This info found on https://gcc.gnu.org/wiki/avr-gcc (https://gcc.gnu.org/wiki/avr-gcc)
Note: Please tell us whether a CB Wizard or you the user set these values.
Edit: Looks like the CB Wizard and Compiler settings; I am guessing both being wrong is not likely; maybe the just the linker using -mmcu=atmega8 is wrong, instead.
Tim S.
Hello, i have the same problem, by what i've read i have tried everything but still not fixed??
this is the build log:
g++.exe -o bin\Release\yesier.exe obj\Release\main.o -s
g++.exe: error: obj\Release\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))
Quote from: codeblokuser on November 18, 2024, 09:53:13 PM
Hello, i have the same problem, by what i've read i have tried everything but still not fixed??
this is the build log:
g++.exe -o bin\Release\yesier.exe obj\Release\main.o -s
g++.exe: error: obj\Release\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))
So, since you tried everything there is no way I can help you.
Good luck and Good bye.
Reading the FAQs might help; but, you already did that!
You already tried building the project in a folder you have read/write permissions.
Tim S.
https://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F (https://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F)
Edit: For people with compiler errors, posting a full rebuild log in code tags is a good way to get useful feed back.
Having spaces or non ASCII characters in the path can cause compiler issues for some toolchains.
Tim S.
Gredings,
Thank you for your help Tim, i have read the Faq but my problem was not mentioned... Yesterday i solved the problem, my projects were being saved in a folder on my desktop and i moved them to disc D. After that it worked fine, i dont know why because both folders have read and write permissions.
See ya!
Quote from: BlueHazzard on December 30, 2021, 08:58:30 AM
Have you checked the access rights in the project folder?
Can you share your project?
can you reproduce it with a minimal hello world project?
So, did not read the thread. Or, you did not realize Windows permission is easy to get wrong and have it look right.
Edit: Unless you are a Windows Power User (The old meaning of the term) or an Windows OS Expert; you need to try in a folder that you have confirmed read/write/create access.
Tim S.
Hello! I had the same problem, but after a long time of research, I came to the conclusion that all I needed to do is to change the folder my projects were saving in. At first, they were saving in One Drive/Documents then I changed it to Local Disk (C)/Users/me/Documents. Hope it helps you!!!