无法在linuxmint 17上的code :: blocks 13.12中运行c/c ++代码:状态255 [英] Can't run c/c++ codes in code::blocks 13.12 on linuxmint 17: Status 255

查看:91
本文介绍了无法在linuxmint 17上的code :: blocks 13.12中运行c/c ++代码:状态255的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在code :: blocks中运行任何C/C ++程序.有人可以建议为什么发生这种情况吗?目前,我已经在系统上安装了gnu c和g ++编译器. 有关构建和运行此简单C代码的错误消息:

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;
}

是:

检查是否存在:/home/user1/Desktop/progs/a执行:xterm -T'/home/user1/Desktop/progs/a'-e/usr/bin/cb_console_runner"/home/user1/Desktop/progs/a"(在/home/user1/Desktop/progs中)

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)

进程终止,状态为255(0分钟,6秒)

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

推荐答案

您有两个选择:

  • 安装xterm

  • 在CodeBlocks中,转到Settings->Environment,转到Terminal to launch console programs,然后选择适当的终端.
  • In CodeBlocks, go to Settings->Environment, go to Terminal to launch console programs, and select an appropriate terminal.

当前发生的情况是CodeBlocks尝试使用xterm运行您的程序,该程序未安装在您的计算机上.

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

这篇关于无法在linuxmint 17上的code :: blocks 13.12中运行c/c ++代码:状态255的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆