2020-12-30

I recently installed codeblocks (Code :: Blocks IDE) but do not compile the simple test program

Summarizing the problem as generally as possible:

I used to compile the program via terminal with the sequence of commands even in bash.
Basically:

g++ test.cpp -o teste.exe
chmod +x teste.exe
./teste.exe

At the terminal it works perfectly. But Codeblock practically does not create the program's executable. Simple example program created:

#include <iostream>

int main(){
    std::cout << "Test\n";
    return 0;
}

I press "Build and run" (At first it detects g++ so I selected the only one I had.).
Nothing, just this:

-------------- Build file: "no target" in "no project" (compiler: unknown)---------------

g++   -c "/home/williambronzo/Área de Trabalho/teste.cpp" -o "/home/williambronzo/Área de Trabalho/teste.o"
g++  -o "/home/williambronzo/Área de Trabalho/teste" "/home/williambronzo/Área de Trabalho/teste.o"   
Process terminated with status 0 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
 
Checking for existence: /home/williambronzo/Área de Trabalho/teste

-------------- Build file: "no target" in "no project" (compiler: unknown)---------------

g++   -c "/home/williambronzo/Área de Trabalho/teste.cpp" -o "/home/williambronzo/Área de Trabalho/teste.o"
g++  -o "/home/williambronzo/Área de Trabalho/teste" "/home/williambronzo/Área de Trabalho/teste.o"   
Process terminated with status 0 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))

There is some detail that I missed to be able to use the codeblock, otherwise I will be in the terminal and bash. I heard that new students are afraid of the terminal. So I'm trying to use something that should be "easy" (the terminal is easy for me but not for others).

Detail:
Use linux minimal ubuntu version with essential installation.



from Recent Questions - Stack Overflow https://ift.tt/3hujxpS
https://ift.tt/eA8V8J

No comments:

Post a Comment