Code::Blocks Forums

User forums => Help => Topic started by: KEkekekeke on December 18, 2013, 05:03:11 pm

Title: After building and executing, my programs hang
Post by: KEkekekeke on December 18, 2013, 05:03:11 pm
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).
Title: Re: After building and executing, my programs hang
Post by: 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
Title: Re: After building and executing, my programs hang
Post by: KEkekekeke on December 19, 2013, 12:02:53 am
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.
Code
#include <iostream>

using namespace std;

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