News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

.cpp programs build but no output shown

Started by rilian, October 12, 2009, 05:58:10 AM

Previous topic - Next topic

rilian

I searched the forums for this issue but didn't see anything so I am posting.
I am running on windows 7 rc build 7100 and I installed codeblocks w/ mingw just fine w/o incident. I can start a console project using a .c file and it runs fine. When I start a new console project using c++, I can build the default helloworld project w/o errors but my only output is:

Process returned 0 (0x0)   execution time : 0.006 s
Press any key to continue.

I get no output from the cout statement. I have looked high and low and can't figure out what I am doing wrong. Any help would be appreciated.

I installed from the stable release w/ mingw included. Version 8.02 of codeblocks.
Thanks

stahta01

Quote from: rilian on October 12, 2009, 05:58:10 AM
I installed from the stable release w/ mingw included. Version 8.02 of codeblocks.
Thanks

I suggest trying an newer compiler the MinGW included with Code::Blocks has issues with Vista it might also have problems with Windows 7.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]