[Insight-users] console appear and disappear
Luis Ibanez
luis.ibanez at kitware.com
Sun Feb 4 13:36:50 EST 2007
Hi R.R.
mmm, you have spent too much time using Windows :-(
The Hello World application is not a GUI based application.
That means that if you are using it on Windows and you
simply double-click on it, what you will see is the MS-DOS
console appearing and disappearing rapidly.
What you should do is to first open the MS-DOS console
(by using "cmd" in the Start->"Run..." button of the
Windows task bar, or by searching for it in the menu
"All Programs"-->"Accessories"-->"Command Prompt"
Once you have the console open, you go to the directory
where you have the executable of the HelloWorld.exe
program. For this you use the "cd" command.
Finally you execute the program by typing:
HelloWorld.exe
As a response, the program should simply print out
the following message in your console:
ITK Hello World !
Regards,
Luis
---------------
R. R. wrote:
> Hi all!!
> First of all, I am sorry for my english not so perfect... :D
>
> I have a problem with the program HelloWorld.
> I use Visual studio 2005.
> I used CMake 2.4.6 and created the workspace HelloWorld.
> But when I run it, the console appear and next disappear immediately.
>
> Actually, in the properties of the project named HelloWorld, it seems
> that it
> isn't a CONSOLE application.
> I thought that CMake created console application by default...
>
> But it seems it isn't so...
> There is something I should change in CMake's options in order to create
> a console application??
>
>
> Thanks in advance!!
>
>
More information about the Insight-users
mailing list