User forums > Help

After building and executing, my programs hang

(1/1)

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

--- End quote ---
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.

--- Code: ---#include <iostream>

using namespace std;

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


--- End code ---

Navigation

[0] Message Index

Go to full version