Code :: Blocks console application will not show output

I have an application in Code :: Blocks, and this is a simple, traditional Hello, World program.

#include <iostream> int main() { std::cout << "Hello, World!" << std::endl; } 

The program builds and executes, but the output is not displayed. I checked the project properties in Code :: Blocks and was definitely configured for a console application. Any suggestions regarding the problem?

Edit: Exit only in the IDE. When launched, a separately executable executable works exactly as expected.

+4
source share
2 answers

You may not have xterm .

If you are using Linux (Debian), you can install it using your package manager as follows:

sudo apt-get install xterm

+5
source

Perhaps you need to configure the terminal for lunch in console applications. This can be done in the general environment settings.

0
source

All Articles