Hi again,<br><br>It is MinGW GCC 4.4.1 actually.<br>Please also find here: <a href="http://a.imagehost.org/0552/cmakeITK.jpg">http://a.imagehost.org/0552/cmakeITK.jpg</a><br>a capture of CMake configuration for the build of ITK.<br>
<br>Regards,<br>Emile.<br><br><div class="gmail_quote">On Wed, Sep 2, 2009 at 2:30 PM, Emile de Weerd <span dir="ltr">&lt;<a href="mailto:mederel%2Binsightusers@gmail.com">mederel+insightusers@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Insight-Users,<br><br>I am beginning with ITK, and wrote a little program:<br><br>includes of main.cpp:<br>
<span style="font-family: courier new,monospace;">#include &lt;iostream&gt;</span><br style="font-family: courier new,monospace;">



<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">// Project includes</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">#include &quot;myAppIO.h&quot;</span><br>




<br>includes of myAppIO.h:<br><span style="font-family: courier new,monospace;">//ITK includes</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">#include &quot;itkImage.h&quot;</span><br style="font-family: courier new,monospace;">




<span style="font-family: courier new,monospace;">#include &quot;itkImageFileReader.h&quot;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">#include &quot;itkImageSeriesWriter.h&quot;</span><br style="font-family: courier new,monospace;">




<span style="font-family: courier new,monospace;">#include &quot;itkNumericSeriesFileNames.h&quot;</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">//Project includes</span><br style="font-family: courier new,monospace;">




<span style="font-family: courier new,monospace;">#include &quot;myAppCommon.h&quot;</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">typedef itk::ImageFileReader&lt; myAppImage3DType &gt;   myApp3DReaderType;</span><br style="font-family: courier new,monospace;">




<span style="font-family: courier new,monospace;">typedef itk::ImageSeriesWriter&lt; myAppImage3DType, myAppImage2DType &gt; myAppWriterType;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">typedef itk::NumericSeriesFileNames    myAppNameGeneratorType;</span><br>




<br>includes of myAppCommon.h:<br><span style="font-family: courier new,monospace;">#include &quot;itkImage.h&quot;</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">typedef itk::Image&lt; unsigned char, 3 &gt;      myAppImage3DType;</span><br style="font-family: courier new,monospace;">




<span style="font-family: courier new,monospace;">typedef itk::Image&lt; unsigned char, 2 &gt;      myAppImage2DType;</span><br><br>I am using MinGW Makefiles generator of CMake 2.6, with MinGW gcc version 4.0.<br>Here is the CMakeLists.txt:<br>




<span style="font-family: courier new,monospace;">CMAKE_MINIMUM_REQUIRED(VERSION 2.6)</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">PROJECT(myAppProject)</span><br style="font-family: courier new,monospace;">




<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">FIND_PACKAGE(ITK REQUIRED)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">IF(ITK_FOUND)</span><br style="font-family: courier new,monospace;">




<span style="font-family: courier new,monospace;">    INCLUDE(${ITK_USE_FILE})</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">ENDIF(ITK_FOUND)</span><br style="font-family: courier new,monospace;">




<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">ADD_EXECUTABLE(myApp</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    main.cpp</span><br style="font-family: courier new,monospace;">




<span style="font-family: courier new,monospace;">    myAppIO.cpp</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">)</span><br style="font-family: courier new,monospace;">




<span style="font-family: courier new,monospace;">    </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">TARGET_LINK_LIBRARIES(myApp ITKCommon ITKIO)</span><br><br>I have compiled ITK with the same compiler and cmake.<br>




When I use the standard output in the main.cpp (like std::cout &lt;&lt;
&quot;Hello World !&quot; &lt;&lt; std::endl;) no standard output is visible in
the console cmd.exe. I do not understand why, I sought the issue on
this list and Google, with no luck.<br>
Does anyone what is happening here ?<br><br>Thanks for reading,<br><font color="#888888"><font color="#888888"><font color="#888888">Emile.<br></font></font><br>P.S.:
I also build the ITK Hello World example from the ItkSoftwareGuide and
no output is written on standard output. Where is ITK redirecting the
standard outputs ?</font>
</blockquote></div><br>