Author Topic: Codeblocks on Linux - no terminal  (Read 3460 times)


  • Guest
Codeblocks on Linux - no terminal
« on: March 13, 2018, 08:27:11 am »

I am running Codeblocks on Linux Mint and I have a little problem:

-------------- Run: Release in Test (compiler: GNU GCC Compiler)---------------

Checking for existence: /home/max/Test/bin/Release/Test
Executing: xterm -T Test -e /usr/bin/cb_console_runner LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. /home/max/Test/bin/Release/Test  (in /home/max/Test/.)
Process terminated with status -1 (0 minute(s), 0 second(s))
I have this piece of code:

#include <iostream>

using namespace std;

int main()
    cout << "Hello world!" << endl;
    return 0;

But  when I try to run it, there is no terminal window with program like on Windows. I was excepting when I press build & run to open a terminal with the program itself and display the message: Hello world.

Can you please help me ?

Thanks !

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13071
    • Travis build status
Re: Codeblocks on Linux - no terminal
« Reply #1 on: March 13, 2018, 08:56:56 am »
Have you read this "Executing: xterm -T Test -e"?
Have you understood what it means?
I guess you don't have xterm installed and this is the reason it fails.
Either install xterm or go to the settings -> environment -> general and switch to a terminal you have installed.

And probably use the search function next time, because this is a common question.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]