[Insight-users] helloworld.exe not running

Brecht Heyde Brecht.Heyde at med.kuleuven.be
Mon Aug 15 15:51:01 EDT 2011


Hi,

Try adding std::cin.get() to your code. This will pause your executable
until you push another key. You should be able to see the output then, even
from the debugger.

Best,
Brecht

-----Original Message-----
From: insight-users-bounces at itk.org [mailto:insight-users-bounces at itk.org]
On Behalf Of John Drescher
Sent: zondag 14 augustus 2011 16:15
To: Aparna Srinivasan
Cc: insight-users at itk.org
Subject: Re: [Insight-users] helloworld.exe not running

On Sun, Aug 14, 2011 at 6:05 AM, Aparna Srinivasan
<coffeeadicto at yahoo.co.in> wrote:
> Hello
> I spent the better part of today morning and the afternoon trying to get
itk
> running on my windows xp 32 bit OS. I use visual C++ 2008 for compiling.
> to test the helloworld program, i copied the cmake...txt file and the
> helloworld.cxx file into a folder and used cmake to specify the source and
> binary directories and configured and generated it.
> no problem with that.
> i run the solution file in both the debug and release modes in visual
> studio.. no errors..build succeeded..0 failed..however when i execute the
> .exe files located in the debug and release folders.. i dont get the
> required output..
>  all i get is a blank screen that immediately shuts off on it own.. no
> 'hello world.. press any key to continue' .. can somebody please tell me
> what might have gone wrong.. im very frustrated. :(
>

That is the expected output for running a console program in the
Visual Studio debugger. To see the output run it from a cmd.exe
prompt.

John
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.html

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users



More information about the Insight-users mailing list