Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Arghoslent6 on December 08, 2015, 12:07:55 am

Title: Empty Terminal upon building and running
Post by: Arghoslent6 on December 08, 2015, 12:07:55 am
Hello everyone, new to the forum, and to the programming world, I am currently enrolled in a first year C programming course in College so be gentle regarding my shortcomings, lack of knowledge, or any missteps of netiquette.

The current problem I am facing is as stated in the title of the thread. I had tried several different pieces of code, from simple, to more complex. I initially had problems getting the compiler to work, but I was finally able to get GCC to work with code blocks. The problem is, when I build and run, although a terminal window pops up, it remains blank. All the pieces of code I have used are correct and do compile as I they are old labs from my C programming class.

This is a snapshot of a piece of code I have used, and the blank screen in question (although im pretty sure everyone has seen this): http://imgur.com/gI5J2ln

I have searched google for a solution as well as the forums without any solution to the problem. If someone were to help me solve this problem, it would be much appreciated.

Thank you

-A

My friend is also in the c programming class and uses code blocks, he also uses GCC, and has no problem, so there is no issue in that regard.
Title: Re: Empty Terminal upon building and running
Post by: BlueHazzard on December 08, 2015, 12:32:10 am
A good place to start, and also a help, to ask the right questions, and give us the right answers, so that you get quick help:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29
especially:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

Now to your problem:
http://forums.codeblocks.org/index.php/topic,20720.msg141199.html#msg141199
http://forums.codeblocks.org/index.php/topic,20725.msg141233.html#msg141233
or short: deactivate AVG (or any other anti virus) or add c::b and your project folder to the exceptions

greetings

[EDIT:] i have added a FAQ for this: http://wiki.codeblocks.org/index.php/FAQ-Compiling_%28general%29#Q:_I_get_a_blank_.28black.29_terminal_window_on_windows