News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

After building and executing, my programs hang

Started by KEkekekeke, December 18, 2013, 05:03:11 PM

Previous topic - Next topic

KEkekekeke

I'm running 32bit windows xp, an older machine. I installed the correct codeblocks with the gcc compiler, I did have to hit auto-detect on the compiler's installation directory, and it will build my programs. When I try to run them however (even a simple hello world), the terminal window will come up blank and just hang, and will not shut down unless I end the process. The machine I'm on probably hasn't had any updates in a while, it's pretty old I can't even tell the exact number (it's an "antec" that came with about 128 mb of ram).

BlueHazzard

Does the programm run within c::b?
i without a minimal code example it is hard to help you...

greetings

KEkekekeke

Quote from: BlueHazzard on December 18, 2013, 10:06:25 PM
Does the programm run within c::b?
i without a minimal code example it is hard to help you...

greetings
This is the code I'm using, a simple "Hello world" program, after built, and when run, the terminal window pops up like it should, but stays blank and doesn't print "Hello world". I cannot close the terminal window unless I shut down the computer.

#include <iostream>

using namespace std;

int main()
{
    cout << "Hello world!" << endl;
    return 0;
}