CodeLite - 控制台运行,但代码不工作 [英] CodeLite - Console runs but code is not working

查看:910
本文介绍了CodeLite - 控制台运行,但代码不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在我的两台电脑上安装了CodeLite 6.0,但是在这两台电脑上我遇到了同样的问题:我可以构建和运行项目,但是当控制台开始运行时,我看到的是:

I just installed CodeLite 6.0 in two of my PC's, however in both of these computers I get the same issue: I am able to build and run the project, but when the console starts running all I see is:

这是我的代码:

#include <stdio.h>

int main(int argc, char **argv)
{
    printf("hello world\n");
    return 0;
}

如果我尝试添加一些实际上不存在的疯狂指令,控制台仍将显示没有错误,项目将构建没有错误,也。例如,使用以下代码:

and if I try to add some crazy instruction that actually doesn't exist, console will still show up with no errors and the project will build with no errors, too. For example, using the following code:

#include <stdio.h>

int main(int argc, char **argv)
{
    printf("hello world\n");
    notrealcode<<"hi";
    return 0;
}

cout< Hello World也不工作。

推荐答案

一个编译器安装。
请参阅本教程了解如何选择和添加编译器: http://codelite.org/AddNewCompiler/ AddNewCompiler

这篇关于CodeLite - 控制台运行,但代码不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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