[Insight-users] Error while using with MFC app

Vincent Daanen vincent.daanen at imag.fr
Tue Nov 29 04:57:14 EST 2005


Hi itk-users,

I want to include a piece of code which is perfectly working in Win32, 
Console Application in a MFC application.

When using the classes I create, the compiler hangs with 19 errors  (see 
below).

Since this code works in console (MFC support) app, I'm really lost 
about the reasons it does not work in my 'full' application.

 PLEASE HELP !!!

  Vince

Error messages :
----------------

C:\DevTools\Kitware\InsightToolkit-2.0.1\Utilities\vxl\vcl\win32-vc60/vcl_cmath.h(117) 
: error C2589: '(' : illegal token on right side of '::'
C:\DevTools\Kitware\InsightToolkit-2.0.1\Utilities\vxl\vcl\win32-vc60/vcl_cmath.h(117) 
: error C2059: syntax error : '::'
C:\DevTools\Kitware\InsightToolkit-2.0.1\Utilities\vxl\vcl\win32-vc60/vcl_cmath.h(165) 
: error C2589: '(' : illegal token on right side of '::'
C:\DevTools\Kitware\InsightToolkit-2.0.1\Utilities\vxl\vcl\win32-vc60/vcl_cmath.h(165) 
: error C2059: syntax error : '::'
C:\DevTools\Kitware\InsightToolkit-2.0.1\Code\Common\itkConceptChecking.h(318) 
: error C2653: 'Detail' : is not a class or namespace name
        
C:\DevTools\Kitware\InsightToolkit-2.0.1\Code\Common\itkConceptChecking.h(328) 
: see reference to class template instantiation 'Signed<T>' being compiled
C:\DevTools\Kitware\InsightToolkit-2.0.1\Code\Common\itkConceptChecking.h(318) 
: error C2143: syntax error : missing ';' before '<'
        
C:\DevTools\Kitware\InsightToolkit-2.0.1\Code\Common\itkConceptChecking.h(328) 
: see reference to class template instantiation 'Signed<T>' being compiled
C:\DevTools\Kitware\InsightToolkit-2.0.1\Code\Common\itkConceptChecking.h(318) 
: error C2059: syntax error : '<'
        
C:\DevTools\Kitware\InsightToolkit-2.0.1\Code\Common\itkConceptChecking.h(328) 
: see reference to class template instantiation 'Signed<T>' being compiled
C:\DevTools\Kitware\InsightToolkit-2.0.1\Code\Common\itkConceptChecking.h(318) 
: error C2238: unexpected token(s) preceding ';'
        
C:\DevTools\Kitware\InsightToolkit-2.0.1\Code\Common\itkConceptChecking.h(328) 
: see reference to class template instantiation 'Signed<T>' being compiled
C:\DevTools\Kitware\InsightToolkit-2.0.1\Code\Common\itkConceptChecking.h(319) 
: error C2653: 'Detail' : is not a class or namespace name
        
C:\DevTools\Kitware\InsightToolkit-2.0.1\Code\Common\itkConceptChecking.h(328) 
: see reference to class template instantiation 'Signed<T>' being compiled
.......
C:\DevTools\Kitware\InsightToolkit-2.0.1\Code\Common\itkConceptChecking.h(362) 
: fatal error C1903: unable to recover from previous error(s); stopping 
compilation


Platform :
---------

Itk 2.0.1
MSVC 6.0,





-- 
Vincent Daanen, PhD
Research Engineer, Post-Doctoral Position
Laboratoire TIMC/IMAG (Univ. Joseph Fourier - CNRS UMR 5525)
Equipe GMCAO
Institut d'Ingénierie de l'Information de Santé (IN3S)
Faculté de Médecine - 38706 La Tronche cedex - France
Tel: +33 (0)4 56 52 00 54 - Fax: +33 (0)4 56 52 00 55
Vincent.Daanen at imag.fr

"Les problèmes ne peuvent être résolus par
ceux dont l'horizon se limite aux réalités 
quotidiennes, mais par ceux qui rêvent de 
choses qui n'ont jamais existées et qui se 
disent : Pourquoi Pas ?"

J-F Kennedy, 1963.



More information about the Insight-users mailing list