GPUBinaryMorphology problem

hi,
i use BinaryMorphology with cpu,such as binary open,binary close operation in 3d medical image,but it’s very slowly,so i want use GPUBinaryMorphology to improve computational efficiency,and i find the link ITK_GPUBinaryMorphology/Modules/Filtering/GPUBinaryMorphology at master · medons/ITK_GPUBinaryMorphology · GitHub that is very useful,but i can’t build it with cmake,can anyone help me solving it?

thank you

This question has been asked and is being answered in the linked GitHub repository.

@junqiangchen If you copy-pasted the error messages instead of making a screenshot, somebody might have translated them using Google Translate. If you did that yourself and posted the error messages in English, English-speaking members of the community would have a lower barrier to looking into your problem and potentially answering.

hi,

thank your reply, i will copy-pasted the error meessages to issues.

hi,

i download the ITK-GPUBinaryMorphology source code from this link:Releases · medons/ITK_GPUBinaryMorphology · GitHub
i use cmake to build it,and enable ITK_USE_GPU,everything is ok.
but when i use vs2019 open the ITK slolution,only have one error that is model GPUBinaryMorphology,the error message is here:

151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(37,34): error C2143: syntax error: missing ‘)’ before ‘(’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(37,23): error C2079: ‘visibility’ uses undefined class ‘itk::attribute
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(37,45): error C2059: syntax error: ‘)’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(37,46): error C2059: syntax error: ‘)’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(37,34): error C2440: ‘initializing’: cannot convert from ‘const char [8]’ to ‘int’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(37,34): message : There is no context in which this conversion is possible
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(37,48): error C2146: syntax error: missing ‘;’ before identifier ‘GPUBinaryErodeImageFilterKernel’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(38,3): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(39,5): error C2059: syntax error: ‘public’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(40,29): error C2143: syntax error: missing ‘)’ before ‘(’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(40,18): error C2079: ‘visibility’ uses undefined class ‘itk::attribute
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(40,18): error C2374: ‘itk::visibility’: redefinition; multiple initialization
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(37): message : see declaration of ‘itk::visibility’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(40,40): error C2059: syntax error: ‘)’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(40,41): error C2059: syntax error: ‘)’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(40,61): error C2448: ‘itk::visibility’: function-style initializer appears to be a function definition
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(41,5): error C2059: syntax error: ‘private’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(43,47): error C2588: ‘::~GPUBinaryErodeImageFilterKernel’: illegal global destructor
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(44,77): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(44,77): error C2143: syntax error: missing ‘,’ before ‘&’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(45,60): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(45,60): error C2143: syntax error: missing ‘,’ before ‘&’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(50,40): error C2143: syntax error: missing ‘,’ before ‘<’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(101): message : see reference to class template instantiation ‘GPUBinaryErodeImageFilter<TInputImage,TOutputImage,TKernel>’ being compiled
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(55,43): error C2143: syntax error: missing ‘;’ before ‘<’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(55,1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(55,1): error C2238: unexpected token(s) preceding ‘;’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(56,25): error C2143: syntax error: missing ‘;’ before ‘<’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(56,1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(56,1): error C2238: unexpected token(s) preceding ‘;’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(57,25): error C2059: syntax error: ‘<’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(57,1): error C2238: unexpected token(s) preceding ‘;’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(61,1): error C3646: ‘New’: unknown override specifier
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(61,1): error C2062: type ‘void’ unexpected
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(61,1): error C2334: unexpected token(s) preceding ‘{’; skipping apparent function body
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(61,1): error C3646: ‘Clone’: unknown override specifier
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(61,1): error C2059: syntax error: ‘(’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(61,1): error C2334: unexpected token(s) preceding ‘{’; skipping apparent function body
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(69,1): error C2059: syntax error: ‘(’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(69,1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(69,1): error C2059: syntax error: ‘)’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(69,42): error C2059: syntax error: ‘)’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(69,1): warning C4183: ‘attribute’: missing return type; assumed to be a member function returning ‘int’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(91,1): error C2061: syntax error: identifier ‘Indent’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(102,1): error C2059: syntax error: ‘}’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h(102,1): error C2143: syntax error: missing ‘;’ before ‘}’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Core\Common\include\itkProgressReporter.h(25,1): error C2143: syntax error: missing ‘;’ before ‘{’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.hxx(29,1): error C2888: ‘GPUBinaryErodeImageFilter<TInputImage,TOutputImage,TKernel>::GPUBinaryErodeImageFilter(void)’: symbol cannot be defined within namespace ‘itk’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.hxx(88,1): error C2888: ‘void GPUBinaryErodeImageFilter<TInputImage,TOutputImage,TKernel>::GPUGenerateData(void)’: symbol cannot be defined within namespace ‘itk’
151>D:\cjq\project\3dlib\ITK_GPU\Bin\Modules\Filtering\GPUBinaryMorphology\src\GPUBinaryErodeImageFilterKernel.cxx(6,61): error C2825: ‘itk::GPUBinaryErodeImageFilterKernel’: must be a class or namespace when followed by ‘::’
151>D:\cjq\project\3dlib\ITK_GPU\Bin\Modules\Filtering\GPUBinaryMorphology\src\GPUBinaryErodeImageFilterKernel.cxx(6,46): error C2510: ‘GPUBinaryErodeImageFilterKernel’: left of ‘::’ must be a class/struct/union
151>GPUBinaryDilateImageFilterKernel.cxx
141>itkMultipleValuedNonLinearVnlOptimizer.cxx
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(37,34): error C2143: syntax error: missing ‘)’ before ‘(’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(37,23): error C2079: ‘visibility’ uses undefined class ‘itk::attribute
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(37,45): error C2059: syntax error: ‘)’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(37,46): error C2059: syntax error: ‘)’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(37,34): error C2440: ‘initializing’: cannot convert from ‘const char [8]’ to ‘int’
141>itkPowellOptimizer.cxx
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(37,34): message : There is no context in which this conversion is possible
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(37,48): error C2146: syntax error: missing ‘;’ before identifier ‘GPUBinaryDilateImageFilterKernel’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(38,3): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(39,5): error C2059: syntax error: ‘public’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(40,29): error C2143: syntax error: missing ‘)’ before ‘(’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(40,18): error C2079: ‘visibility’ uses undefined class ‘itk::attribute
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(40,18): error C2374: ‘itk::visibility’: redefinition; multiple initialization
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(37): message : see declaration of ‘itk::visibility’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(40,40): error C2059: syntax error: ‘)’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(40,41): error C2059: syntax error: ‘)’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(40,61): error C2448: ‘itk::visibility’: function-style initializer appears to be a function definition
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(41,5): error C2059: syntax error: ‘private’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(43,48): error C2588: ‘::~GPUBinaryDilateImageFilterKernel’: illegal global destructor
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(44,79): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(44,79): error C2143: syntax error: missing ‘,’ before ‘&’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(45,61): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(45,61): error C2143: syntax error: missing ‘,’ before ‘&’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(50,40): error C2143: syntax error: missing ‘,’ before ‘<’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(101): message : see reference to class template instantiation ‘GPUBinaryDilateImageFilter<TInputImage,TOutputImage,TKernel>’ being compiled
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(55,43): error C2143: syntax error: missing ‘;’ before ‘<’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(55,1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(55,1): error C2238: unexpected token(s) preceding ‘;’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(56,25): error C2143: syntax error: missing ‘;’ before ‘<’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(56,1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(56,1): error C2238: unexpected token(s) preceding ‘;’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(57,25): error C2059: syntax error: ‘<’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(57,1): error C2238: unexpected token(s) preceding ‘;’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(61,1): error C3646: ‘New’: unknown override specifier
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(61,1): error C2062: type ‘void’ unexpected
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(61,1): error C2334: unexpected token(s) preceding ‘{’; skipping apparent function body
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(61,1): error C3646: ‘Clone’: unknown override specifier
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(61,1): error C2059: syntax error: ‘(’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(61,1): error C2334: unexpected token(s) preceding ‘{’; skipping apparent function body
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(69,1): error C2059: syntax error: ‘(’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(69,1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(69,1): error C2059: syntax error: ‘)’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(69,42): error C2059: syntax error: ‘)’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(69,1): warning C4183: ‘attribute’: missing return type; assumed to be a member function returning ‘int’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(91,1): error C2061: syntax error: identifier ‘Indent’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(102,1): error C2059: syntax error: ‘}’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h(102,1): error C2143: syntax error: missing ‘;’ before ‘}’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Core\Common\include\itkProgressReporter.h(25,1): error C2143: syntax error: missing ‘;’ before ‘{’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx(29,1): error C2888: ‘GPUBinaryDilateImageFilter<TInputImage,TOutputImage,TKernel>::GPUBinaryDilateImageFilter(void)’: symbol cannot be defined within namespace ‘itk’
151>D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx(86,1): error C2888: ‘void GPUBinaryDilateImageFilter<TInputImage,TOutputImage,TKernel>::GPUGenerateData(void)’: symbol cannot be defined within namespace ‘itk’
151>D:\cjq\project\3dlib\ITK_GPU\Bin\Modules\Filtering\GPUBinaryMorphology\src\GPUBinaryDilateImageFilterKernel.cxx(6,62): error C2825: ‘itk::GPUBinaryDilateImageFilterKernel’: must be a class or namespace when followed by ‘::’
151>D:\cjq\project\3dlib\ITK_GPU\Bin\Modules\Filtering\GPUBinaryMorphology\src\GPUBinaryDilateImageFilterKernel.cxx(6,47): error C2510: ‘GPUBinaryDilateImageFilterKernel’: left of ‘::’ must be a class/struct/union
151>Generating Code…
150>Generating Code…
151>Done building project “ITKGPUBinaryMorphology.vcxproj” – FAILED.

and this are error lists

Severity Code Description Project File Line Suppression State
Error (active) E0020 identifier “SizeValueType” is undefined ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Core\Common\include\itkProgressReporter.h 105
Error (active) E0020 identifier “ThreadIdType” is undefined ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Core\Common\include\itkProgressReporter.h 101
Error (active) E0020 identifier “SizeValueType” is undefined ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Core\Common\include\itkProgressReporter.h 103
Error (active) E0020 identifier “SizeValueType” is undefined ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Core\Common\include\itkProgressReporter.h 104
Error (active) E0169 expected a declaration ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Core\Common\include\itkProgressReporter.h 109
Error (active) E0169 expected a declaration ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Core\Common\include\itkProgressReporter.h 111
Error (active) E0169 expected a declaration ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Core\Common\include\itkProgressReporter.h 112
Error (active) E0077 this declaration has no storage class or type specifier ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 47
Error (active) E0065 expected a ‘;’ ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 47
Error (active) E0077 this declaration has no storage class or type specifier ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 48
Error (active) E0065 expected a ‘;’ ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 48
Error (active) E0077 this declaration has no storage class or type specifier ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 49
Error (active) E0065 expected a ‘;’ ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 49
Error (active) E0169 expected a declaration ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 50
Error (active) E0169 expected a declaration ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 75
Error (active) E0077 this declaration has no storage class or type specifier ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 78
Error (active) E0258 ‘this’ may only be used inside a nonstatic member function ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 78
Error (active) E0169 expected a declaration ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 79
Error (active) E0169 expected a declaration ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 109
Error (active) E0094 the size of an array must be greater than zero ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 116
Error (active) E0020 identifier “OpenCLGetLocalBlockSize” is undefined ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 116
Error (active) E0020 identifier “ImageDim” is undefined ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 116
Error (active) E0169 expected a declaration ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 117
Error (active) E0169 expected a declaration ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 128
Error (active) E0169 expected a declaration ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 130
Error (active) E0169 expected a declaration ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 132
Error (active) E0169 expected a declaration ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 134
Error (active) E0169 expected a declaration ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 141
Error (active) E0258 ‘this’ may only be used inside a nonstatic member function ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 143
Error (active) E0169 expected a declaration ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 144
Error (active) E0169 expected a declaration ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 147
Error (active) E0077 this declaration has no storage class or type specifier ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 149
Error (active) E0065 expected a ‘;’ ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 149
Error (active) E0169 expected a declaration ITKGPUBinaryMorphology-all D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 150
Error C2143 syntax error: missing ‘)’ before ‘(’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 37
Error C2079 ‘visibility’ uses undefined class ‘itk::attribute’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 37
Error C2059 syntax error: ‘)’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 37
Error C2059 syntax error: ‘)’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 37
Error C2440 ‘initializing’: cannot convert from ‘const char [8]’ to ‘int’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 37
Error C2146 syntax error: missing ‘;’ before identifier ‘GPUBinaryErodeImageFilterKernel’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 37
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 38
Error C2059 syntax error: ‘public’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 39
Error C2143 syntax error: missing ‘)’ before ‘(’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 40
Error C2079 ‘visibility’ uses undefined class ‘itk::attribute’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 40
Error C2374 ‘itk::visibility’: redefinition; multiple initialization ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 40
Error C2059 syntax error: ‘)’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 40
Error C2059 syntax error: ‘)’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 40
Error C2448 ‘itk::visibility’: function-style initializer appears to be a function definition ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 40
Error C2059 syntax error: ‘private’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 41
Error C2588 ‘::~GPUBinaryErodeImageFilterKernel’: illegal global destructor ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 43
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 44
Error C2143 syntax error: missing ‘,’ before ‘&’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 44
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 45
Error C2143 syntax error: missing ‘,’ before ‘&’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 45
Error C2143 syntax error: missing ‘,’ before ‘<’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 50
Error C2143 syntax error: missing ‘;’ before ‘<’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 55
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 55
Error C2238 unexpected token(s) preceding ‘;’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 55
Error C2143 syntax error: missing ‘;’ before ‘<’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 56
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 56
Error C2238 unexpected token(s) preceding ‘;’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 56
Error C2059 syntax error: ‘<’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 57
Error C2238 unexpected token(s) preceding ‘;’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 57
Error C3646 ‘New’: unknown override specifier ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 61
Error C2062 type ‘void’ unexpected ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 61
Error C2334 unexpected token(s) preceding ‘{’; skipping apparent function body ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 61
Error C3646 ‘Clone’: unknown override specifier ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 61
Error C2059 syntax error: ‘(’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 61
Error C2334 unexpected token(s) preceding ‘{’; skipping apparent function body ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 61
Error C2059 syntax error: ‘(’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 69
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 69
Error C2059 syntax error: ‘)’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 69
Error C2059 syntax error: ‘)’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 69
Error C2061 syntax error: identifier ‘Indent’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 91
Error C2059 syntax error: ‘}’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 102
Error C2143 syntax error: missing ‘;’ before ‘}’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.h 102
Error C2143 syntax error: missing ‘;’ before ‘{’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Core\Common\include\itkProgressReporter.h 25
Error C2888 ‘GPUBinaryErodeImageFilter<TInputImage,TOutputImage,TKernel>::GPUBinaryErodeImageFilter(void)’: symbol cannot be defined within namespace ‘itk’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.hxx 29
Error C2888 ‘void GPUBinaryErodeImageFilter<TInputImage,TOutputImage,TKernel>::GPUGenerateData(void)’: symbol cannot be defined within namespace ‘itk’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryErodeImageFilter.hxx 88
Error C2825 ‘itk::GPUBinaryErodeImageFilterKernel’: must be a class or namespace when followed by ‘::’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\Bin\Modules\Filtering\GPUBinaryMorphology\src\GPUBinaryErodeImageFilterKernel.cxx 6
Error C2510 ‘GPUBinaryErodeImageFilterKernel’: left of ‘::’ must be a class/struct/union ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\Bin\Modules\Filtering\GPUBinaryMorphology\src\GPUBinaryErodeImageFilterKernel.cxx 6
Error C2143 syntax error: missing ‘)’ before ‘(’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 37
Error C2079 ‘visibility’ uses undefined class ‘itk::attribute’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 37
Error C2059 syntax error: ‘)’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 37
Error C2059 syntax error: ‘)’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 37
Error C2440 ‘initializing’: cannot convert from ‘const char [8]’ to ‘int’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 37
Error C2146 syntax error: missing ‘;’ before identifier ‘GPUBinaryDilateImageFilterKernel’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 37
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 38
Error C2059 syntax error: ‘public’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 39
Error C2143 syntax error: missing ‘)’ before ‘(’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 40
Error C2079 ‘visibility’ uses undefined class ‘itk::attribute’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 40
Error C2374 ‘itk::visibility’: redefinition; multiple initialization ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 40
Error C2059 syntax error: ‘)’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 40
Error C2059 syntax error: ‘)’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 40
Error C2448 ‘itk::visibility’: function-style initializer appears to be a function definition ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 40
Error C2059 syntax error: ‘private’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 41
Error C2588 ‘::~GPUBinaryDilateImageFilterKernel’: illegal global destructor ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 43
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 44
Error C2143 syntax error: missing ‘,’ before ‘&’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 44
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 45
Error C2143 syntax error: missing ‘,’ before ‘&’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 45
Error C2143 syntax error: missing ‘,’ before ‘<’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 50
Error C2143 syntax error: missing ‘;’ before ‘<’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 55
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 55
Error C2238 unexpected token(s) preceding ‘;’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 55
Error C2143 syntax error: missing ‘;’ before ‘<’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 56
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 56
Error C2238 unexpected token(s) preceding ‘;’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 56
Error C2059 syntax error: ‘<’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 57
Error C2238 unexpected token(s) preceding ‘;’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 57
Error C3646 ‘New’: unknown override specifier ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 61
Error C2062 type ‘void’ unexpected ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 61
Error C2334 unexpected token(s) preceding ‘{’; skipping apparent function body ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 61
Error C3646 ‘Clone’: unknown override specifier ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 61
Error C2059 syntax error: ‘(’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 61
Error C2334 unexpected token(s) preceding ‘{’; skipping apparent function body ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 61
Error C2059 syntax error: ‘(’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 69
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 69
Error C2059 syntax error: ‘)’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 69
Error C2059 syntax error: ‘)’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 69
Error C2061 syntax error: identifier ‘Indent’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 91
Error C2059 syntax error: ‘}’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 102
Error C2143 syntax error: missing ‘;’ before ‘}’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.h 102
Error C2143 syntax error: missing ‘;’ before ‘{’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Core\Common\include\itkProgressReporter.h 25
Error C2888 ‘GPUBinaryDilateImageFilter<TInputImage,TOutputImage,TKernel>::GPUBinaryDilateImageFilter(void)’: symbol cannot be defined within namespace ‘itk’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 29
Error C2888 ‘void GPUBinaryDilateImageFilter<TInputImage,TOutputImage,TKernel>::GPUGenerateData(void)’: symbol cannot be defined within namespace ‘itk’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\ITK-4.13.0\Modules\Filtering\GPUBinaryMorphology\include\itkGPUBinaryDilateImageFilter.hxx 86
Error C2825 ‘itk::GPUBinaryDilateImageFilterKernel’: must be a class or namespace when followed by ‘::’ ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\Bin\Modules\Filtering\GPUBinaryMorphology\src\GPUBinaryDilateImageFilterKernel.cxx 6
Error C2510 ‘GPUBinaryDilateImageFilterKernel’: left of ‘::’ must be a class/struct/union ITKGPUBinaryMorphology D:\cjq\project\3dlib\ITK_GPU\Bin\Modules\Filtering\GPUBinaryMorphology\src\GPUBinaryDilateImageFilterKernel.cxx 6

can you help me how to fix the problem?

thank you