[Insight-users] Re: a compiling error about CurvatureAnisotropicDiffusionImageFilter
zhao
zhao_c_g at 263 . net
Mon, 26 Aug 2002 21:45:43 +0800
Hi all,
This compiling error is caused by a improper order of header files. e.g.:
If the headers files are arranged in such an order, the project is compiled smoothly.
#include "itkCurvatureAnisotropicDiffusionImageFilter.h"
#include "itkGradientMagnitudeImageFilter.h"
#include "itkImage.h"
#include "itkImageFileReader.h"
#include "itkImageFileWriter.h"
#include "itkRawImageIO.h"
#include "itkImageRegionIterator.h"
If the first header file are move to the bottom (as below), there will be the compiling error.
#include "itkGradientMagnitudeImageFilter.h"
#include "itkImage.h"
#include "itkImageFileReader.h"
#include "itkImageFileWriter.h"
#include "itkRawImageIO.h"
#include "itkImageRegionIterator.h"
#include "itkCurvatureAnisotropicDiffusionImageFilter.h"
I dont' know why, though the problem is solved.
>Hi all,
>
> This sentence below cause a compiling error (under MSVC6, I know the error is caused by this sentence because the error appears with this sentence):
>
> typedef itk::Image<float, ImageDimension> FloatImageType;
>
> itk::CurvatureAnisotropicDiffusionImageFilter<FloatImageType, FloatImageType>::Pointer diffusion = itk::CurvatureAnisotropicDiffusionImageFilter<FloatImageType,FloatImageType>::New();
>
>
>------------------compiling error------------------
>
> d:\insightbeta2\code\common\itkfinitedifferenceimagefilter.txx(157) : error C2955: 'list' : use of class template requires template argument list
> c:\program files\microsoft visual studio\vc98\include\list(415) : see declaration of 'list'
> d:\insightbeta2\code\common\itksmartpointer.h(59) : while compiling class-template member function 'double __thiscall itk::FiniteDifferenceImageFilter<class itk::Image<float,2>,class itk::Image<float,2> >::Re
>solveTimeStep(const double *,const bool *,int)'
>Error executing cl.exe.
>
> I can't find why this is the case. Need your help, thanks!
>
>
>Zhao ChenGuang
>P.O.Box:010,
>Dept. BME,
>Shanghai Jiao Tong University,
>1954# Hua Shan Road,
>Shanghai,P.R.China,
>200030
>
>