User forums > Help
gcc appears on build log but does nothing - command line works fine
(1/1)
Krakel:
I am running Code::Blocks version 17.12-4 on ArchLinux
(Rolling Release). The compiler I use is GNU Compiler
version 8.2.1
When I try to build any program the build fails, cause g++ doesn't find the .o-files
Build log:
--- Code: ---
-------------- Clean: Debug in tuto-debogeur (compiler: GNU GCC Compiler)---------------
Cleaned "tuto-debogeur - Debug"
-------------- Build: Debug in tuto-debogeur (compiler: GNU GCC Compiler)---------------
gcc -Wall -pedantic-errors -g -pedantic-errors -c /home/ixolius/Studiumétudes/3INFO/INFOC_TP/TP1/tuto-debogeur/carre.c -o obj/Debug/carre.o
gcc -Wall -pedantic-errors -g -pedantic-errors -c /home/ixolius/Studiumétudes/3INFO/INFOC_TP/TP1/tuto-debogeur/main.c -o obj/Debug/main.o
g++ -o bin/Debug/tuto-debogeur obj/Debug/carre.o obj/Debug/main.o
g++: Fehler: obj/Debug/carre.o: Datei oder Verzeichnis nicht gefunden
g++: Fehler: obj/Debug/main.o: Datei oder Verzeichnis nicht gefunden
g++: schwerwiegender Fehler: keine Eingabedateien
Kompilierung beendet.
Process terminated with status 1 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
--- End code ---
Sorry for the German. "Datei oder Verzeichnis nicht gefunden" = "Did not find file or repository"; "schwerwiegender Fehler : keine Eingabedateien" = " fatal error : no input files"; "Kompilierung beendet" = "End of Compilation"
I have already tried
-build the project in the console: This showed me Warnings, but it worked.
-Change read/write permissions
-Build other projects
-use the absolute paths
but none of them worked in Code::Blocks.
I never build something on this computer successfully before.
oBFusCATed:
Do you have g++ installed?
What happens if you execute the commands from the log in a terminal?
What happens if you place the project in a path without special characters?
BTW: C::B cannot work with a localized compiler, because it parses error message from the log and your message doesn't match what is expected.
Krakel:
tl;dr : works in a path without special characters
g++ is installed.
In a terminal:
--- Code: ---ixoliuspc% gcc -Wall -pedantic-errors -g -pedantic-errors -c /home/ixolius/Studiumétudes/3INFO/INFOC_TP/TP1/tuto-debogeur/carre.c -o obj/Debug/carre.o
ixoliuspc% gcc -Wall -pedantic-errors -g -pedantic-errors -c /home/ixolius/Studiumétudes/3INFO/INFOC_TP/TP1/tuto-debogeur/main.c -o obj/Debug/main.o
/home/ixolius/Studiumétudes/3INFO/INFOC_TP/TP1/tuto-debogeur/main.c: In Funktion »main«:
/home/ixolius/Studiumétudes/3INFO/INFOC_TP/TP1/tuto-debogeur/main.c:28:41: Warnung: Format »%f« erwartet Argumenttyp »double«, aber Argument 2 hat Typ »int« [-Wformat=]
printf("La somme des valeurs est : %f , N(N+1)/2 = %f \n", som, n*(n+1)/2);
~^ ~~~
%d
/home/ixolius/Studiumétudes/3INFO/INFOC_TP/TP1/tuto-debogeur/main.c:28:57: Warnung: Format »%f« erwartet Argumenttyp »double«, aber Argument 3 hat Typ »int« [-Wformat=]
printf("La somme des valeurs est : %f , N(N+1)/2 = %f \n", som, n*(n+1)/2);
~^ ~~~~~~~~~
%d
ixoliuspc% g++ -o bin/Debug/tuto-debogeur obj/Debug/carre.o obj/Debug/main.o
ixoliuspc% g++ --version
g++ (GCC) 8.2.1 20180831
Copyright (C) 2018 Free Software Foundation, Inc.
Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es
gibt KEINE Garantie; auch nicht für MARKTGÄNGIGKEIT oder FÜR SPEZIELLE ZWECKE.
ixoliuspc%
--- End code ---
If I place it in a place without special characters, Code::Blocks works as expected.
Does this count as a bug? Should I report it? Should it be added to a wiki page?
oBFusCATed:
It is present in the wiki already - check the various FAQ entries.
It theory it should work. Post an issue on the ticket page in sf.net and I'll look at it.
Make sure to post your locale. Also post a link to this topic.
Navigation
[0] Message Index
Go to full version