You are not logged in.
I'm trying to use Code::Blocks to learn C/C++ (for my self and for some classes i'm doing) but it's giving me an error for something i think it should be CodeBlocks responsibility.
A simple hello world program:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
return 0;
}
returns the following error:
-------------- Build: Debug in teste (compiler: GNU GCC Compiler)---------------
g++ -Wall -fexceptions -g -c /home/quimkaos/Transferências/c++/testes/teste/main.cpp -o obj/Debug/main.o
g++ -o bin/Debug/teste obj/Debug/main.o
/usr/bin/ld: cannot find obj/Debug/main.o: Ficheiro ou pasta inexistente
collect2: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 0 second(s))
2 error(s), 0 warning(s) (0 minute(s), 0 second(s))
it throws a "inexistent folder or file error". it creates the obj/Debug/ directory but seems to fail creating the main.o file
I can compile this using g++ with no errors.
this works fine in windows with mingw...
does anyone know how to fix this?
should i drop Code::Blocks entirely?
i feel like every time i have to use Code::Blocks i get in to Road Blocks (pun intended)... maybe i should suggest a name change upstream...
Last edited by quimkaos (2021-12-07 22:42:23)
Offline
Cannot reproduce. I just installed codeblocks, opend your helloworld file and pressed "Build" button - et voila. How did you do your setup?
Offline
i did a normal install pacman -S codeblocks
I already had base-devel installed so i thought i wouldn't need anything more...
/* EDIT */
i found the problem... i was working in a folder that has non english characters... apparently codeblocks doesn't like paths with accents, and i was doing tests in the ~/Transferências/teste/ directory (downloads directory in Portuguese)
i wish yesterday i was not so tired/sick... i would not waste your or my time... i found the issue here:
https://forums.codeblocks.org/index.php … 123.0.html
that's it i'm moving to CLion...
thanks and I'm sorry...
Last edited by quimkaos (2021-12-07 22:55:56)
Offline