[Insight-users] I can't compile ITK.dsw in VC++ successfully
Luis Ibanez
luis.ibanez@kitware.com
Wed, 19 Mar 2003 07:37:59 -0500
Hi Zhuo,
It looks like you are trying to build ITK using a
VC++ project that was not generated with CMake.
Although this may be possible in principle, it is
certainly a waste of your precious time.
The problem you are having is due to the lack of
the compilation flag that enables RTTI. This is
required for supporting dynamic_casting and
exceptions management.
CMake would have set this variable correctly for you.
There are many other configuration details, similar
to this one, that CMake will take care of.
It is just not worth to try to do this by hand...
Please use CMake to configure your ITK build.
Let us know if you encounter any problems
Thanks
Luis
----------------------------------------------------------
zhuo Chen wrote:
> First,after compiling the program,there is an error
> and more than 4000 warning.And I compiled the program
> again,there is an error and 17 warning.The error and
> warning are shown in the accessory.
>
> _________________________________________________________
> Do You Yahoo!?
> ????,????,NetVista A30 ??
> http://ad.cn.doubleclick.net/clk;5313999;7930402;p?http://www.ibm.com/cn/promotion/pc/netvista_a30/index.shtml
>
>
> ------------------------------------------------------------------------
>
> --------------------Configuration: ITKIO - Win32 Debug--------------------
> Compiling...
> Command line warning D4024 : unrecognized source file type 'IGNORE', object file assumed
> Command line warning D4027 : source file 'IGNORE' ignored
> itkVOLImageIO.cxx
> C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream(547) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify -GX
> D:\cz\research\cztask\VHP\ITK Install(3.19)\InsightToolkit-1.2.0\InsightToolkit-1.2.0\Code\Common\itkEventObject.h(134) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result
> D:\cz\research\cztask\VHP\ITK Install(3.19)\InsightToolkit-1.2.0\InsightToolkit-1.2.0\Code\Common\itkEventObject.h(135) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result
> D:\cz\research\cztask\VHP\ITK Install(3.19)\InsightToolkit-1.2.0\InsightToolkit-1.2.0\Code\Common\itkEventObject.h(136) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result
> D:\cz\research\cztask\VHP\ITK Install(3.19)\InsightToolkit-1.2.0\InsightToolkit-1.2.0\Code\Common\itkEventObject.h(137) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result
> D:\cz\research\cztask\VHP\ITK Install(3.19)\InsightToolkit-1.2.0\InsightToolkit-1.2.0\Code\Common\itkEventObject.h(138) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result
> D:\cz\research\cztask\VHP\ITK Install(3.19)\InsightToolkit-1.2.0\InsightToolkit-1.2.0\Code\Common\itkEventObject.h(139) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result
> D:\cz\research\cztask\VHP\ITK Install(3.19)\InsightToolkit-1.2.0\InsightToolkit-1.2.0\Code\Common\itkEventObject.h(140) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result
> D:\cz\research\cztask\VHP\ITK Install(3.19)\InsightToolkit-1.2.0\InsightToolkit-1.2.0\Code\Common\itkEventObject.h(141) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result
> D:\cz\research\cztask\VHP\ITK Install(3.19)\InsightToolkit-1.2.0\InsightToolkit-1.2.0\Code\Common\itkEventObject.h(142) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result
> D:\cz\research\cztask\VHP\ITK Install(3.19)\InsightToolkit-1.2.0\InsightToolkit-1.2.0\Code\Common\itkEventObject.h(143) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result
> D:\cz\research\cztask\VHP\ITK Install(3.19)\InsightToolkit-1.2.0\InsightToolkit-1.2.0\Code\Common\itkEventObject.h(144) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result
> D:\cz\research\cztask\VHP\ITK Install(3.19)\InsightToolkit-1.2.0\InsightToolkit-1.2.0\Code\Common\itkEventObject.h(145) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result
> D:\cz\research\cztask\VHP\ITK Install(3.19)\InsightToolkit-1.2.0\InsightToolkit-1.2.0\Code\Common\itkEventObject.h(146) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result
> D:\cz\research\cztask\VHP\ITK Install(3.19)\InsightToolkit-1.2.0\InsightToolkit-1.2.0\Code\Common\itkEventObject.h(148) : warning C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' with /GR-; unpredictable behavior may result
> D:\cz\research\cztask\VHP\ITK Install(3.19)\InsightToolkit-1.2.0\InsightToolkit-1.2.0\Code\IO\itkVOLImageIO.cxx(172) : fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit
> Error executing cl.exe.
>
> ALL_BUILD - 1 error(s), 17 warning(s)