Search code examples
c++eclipseconsoleeclipse-cdt

Eclipse CDT : running C++ program not showing anything in the console! Why?


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

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

I have tried this:

Eclipse CDT debugger does not show console

and this:

Eclipse CDT Debug console not displaying program output

But it does not works.


Solution

  • 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:

    • "Name:PATH"
    • "Value:C:\MinGW\bin"

    ;)