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:
-------------- 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))
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.
tl;dr : works in a path without special characters
g++ is installed.
In a terminal:
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%
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?