[Insight-developers] How to build my vtk with the VTK_USE_ANSI_STDLIB

Luis Ibanez luis.ibanez@kitware.com
Thu, 12 Dec 2002 13:30:09 -0500


Hi Zhao,

VTK by default is not built with support for the
ANSI STDLIB.   ITK on the other hand, is by default
built with this support.

Since it is not wise to mix both sets of header
files and libraries, CMake has the kidness to
warn you that you must rebuild VTK with ANSI
support. Otherwise you will be mixing headers
like   <iostream.h>   and   <iostream>.

Please reconfigure your build of VTK using CMake.
Make sure that you enable the flag:

        VTK_USE_ANSI_STDLIB

just as the CMake message is asking you to do it.
Then rebuild VTK.

Once VTK is rebuild you can reconfigure ITK
and built it.

Please let us know if you have further questions.


Happy compiling  :-)


   Luis


--------------------------------------

Zhao Yongming wrote:
> I have download the source code of vtk and itk. And I
> have built vtk with the ANSI_STDLIB option on. But
> when I wanted to build itk in CMake. it showed the
> MESSAGE ("Warning. Your VTK was not built with the
> VTK_USE_ANSI_STDLIB option ON. \nPlease reconfigure
> and recompile VTK with this option before trying to
> use it with ITK."). Can you tell me to reason?
> Thank you!
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> _______________________________________________
> Insight-developers mailing list
> Insight-developers@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-developers
> 
>