Eclipse CDT:运行C ++程序在控制台中不显示任何内容!为什么? [英] Eclipse CDT : running C++ program not showing anything in the console! Why?

查看:413
本文介绍了Eclipse CDT:运行C ++程序在控制台中不显示任何内容!为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行最新版本的Eclipse与CDT在Windows 64位与Cygwin编译代码。

I'm running the latest version of Eclipse with CDT on Windows 64 bits with Cygwin for compiling the code.

我的问题是,当我运行任何c ++软件在eclipse中,在控制台中没有输出。

My problem is that when i run any c++ software in eclipse, there is no output in the console.

我尝试过:

Eclipse CDT调试程序不显示控制台

和此:

Eclipse CDT调试控制台不显示程序输出

但它不工作。

推荐答案

作为无控制台输出(MinGW ,CDT)指出,这可能是(或至少有时),因为Eclipse不会将 PATH 添加到 MINGW\bin

As guys at "No Console Output (MinGW, CDT)" point out, this is probably (or at least sometimes) because Eclipse does not add PATH to MINGW\bin when launching the executable, so:

在环境标签中,按新建,设置为:

In the "Environment" tag, press "New", set it as:


  • 名称:PATH

  • 值:C:\MinGW\bin

;)

这篇关于Eclipse CDT:运行C ++程序在控制台中不显示任何内容!为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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