User forums > Help

No console window appears when I run a console application

(1/3) > >>

new_user:
I am on windows.

The Hello World Console Application builds great but when I run there is no console window that comes up with output.

I am using cygwin gcc and gdb.

Thanks,
Scott

new_user:
More info -

I found the link
http://sourceforge.net/forum/forum.php?thread_id=1270028&forum_id=48211
by searching this forum.  I did the recommended steps including the last portion of the thread as quoted below

"My compiler is installed to D:\Dev-CPP. Therefore my GDB is in D:\dev-cpp. I created a file called gdb.ini and just put "set new-console on" in the file. Then in the program go to: Tools -> Compiler Options -> Programs. Then in the gdb.exe line put the following: gdb.exe --command=D:\Dev-Cpp\Bin\gdb.ini"

BTW - I was able to run the gdb exercise from the command line earlier where the console window flashed up for a moment and the author said I could go drink a beer because it would work.  No such luck.

I still have no console window when I run.

Is there a log file that can give me a clue?

Thanks,
Scott

Deschamps:
Hello.

Have you tried calling your console app directly from the command line window? Or are you always executing your app from the C::B run option? Also, you could see your project properties (build targets tab) to ensure that "Pause when execution ends" option is checked for the desired target. It's possible that your app is running fine, but the console window closes quickly just after execution ends and you can't see it.

Regards.

new_user:
Thanks Deschamps for your reply.  I execute my app from the C::B run option and "Pause when execution ends" is checked.

The Build log does not show any activity when I run so I am not sure why the console window doesn't come up.  I don't see a quick flash so I doubt that it's ever coming up.

Scott

Drydive:
Well I found the same problem. I updated to Revision 5082. When running a simple "Hello World" program by using the run button of C:B
no console output appears.  When I debug the same program the console appears and runs as expected. "Pause when execution ends" is
checked in the build target options. 


Is this a bug of this revision? Any comments are welcome.

Thomas

Navigation

[0] Message Index

[#] Next page

Go to full version