Author Topic: After building and executing, my programs hang  (Read 3977 times)

Offline KEkekekeke

  • Single posting newcomer
  • *
  • Posts: 2
After building and executing, my programs hang
« 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).

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: After building and executing, my programs hang
« Reply #1 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

Offline KEkekekeke

  • Single posting newcomer
  • *
  • Posts: 2
Re: After building and executing, my programs hang
« Reply #2 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;
}