guitar_geek
guitar_geek

Reputation: 498

Can't run c/c++ codes in code::blocks 13.12 on linuxmint 17: Status 255

I am not able to run any C/C++ programs in code::blocks. Could anyone please suggest why this is happening? Currently I have the gnu c and g++ compilers installed on the system. The error message on building and running this simple c code:

#include<stdio.h>

int main(){
    printf("55");
    return 0;
}

is:

Checking for existence: /home/user1/Desktop/progs/a Executing: xterm -T '/home/user1/Desktop/progs/a' -e /usr/bin/cb_console_runner "/home/user1/Desktop/progs/a" (in /home/user1/Desktop/progs)

Process terminated with status 255 (0 minute(s), 6 second(s))

Upvotes: 7

Views: 11998

Answers (3)

Deva
Deva

Reputation: 21

On Linux Mint with MATE Desktop do as descriped above:

In CodeBlocks,

  • go to Settings->Environment,

  • go to "Terminal to launch console programs",

  • select GNOME terminal.

  • EDIT/exchange manual "gnome-terminal" to "mate-terminal". Click ok to confirm and "run" in CodeBlocks should work.

Upvotes: 2

Valentin Mercier
Valentin Mercier

Reputation: 5326

I have had this issue once, maybe your program hasn't be properly ended the last time you ran it, so it is still open hence the issue while running it again

Upvotes: 0

Daniel Kleinstein
Daniel Kleinstein

Reputation: 5512

You have two options:

  • Install xterm

or

  • In CodeBlocks, go to Settings->Environment, go to Terminal to launch console programs, and select an appropriate terminal.

What's currently happening is that CodeBlocks is attempting to run your program with xterm, which isn't installed on your machine.

Upvotes: 14

Related Questions