[Insight-users] txx as compilable files

Luis Ibanez luis.ibanez at kitware.com
Mon Jul 10 15:07:37 EDT 2006


Hi Jonghye,

Please read the FAQ entry:

http://www.itk.org/Wiki/ITK_FAQ#Highlighting_.txx_files_in_Visual_Studio


   Regards,


     Luis



--------------------
Jonghye Woo wrote:
> DEar *Luis Ibanez*
> 
> I read the answer in insight application mailing list related to the 
> following errors:
> I confronted the same problem.
> 
> Can you tell me how to solve this problem?
> 
> I just follow what you wrote: right clicking the txx file and there are 
> three menu like follows: open, docking view, hide and properties
> 
> Thanks
> 
> -------------------Configuration: ImageCalculator - Win32 Release--------------------
> 
> Compiling...
> ImageCalculatorProcess2D.cxx
> C:\Librabries\InsightApplications-2.6.0\InsightApplications-2.6.0\ImageCalculator\Imgmath.h
> (149) : error C2899: typename cannot be used outside a template declaration
> 
>         C:\Librabries\InsightApplications-2.6.0\InsightApplications-2.6.0\ImageCalculator\ImageCalculatorTemplates.h(635) : see reference to function template instantiation 'class itk::SmartPointer<class itk::Image<double,2> > __cdecl Iavg(class itk
> 
> 
> ::/SmartPointer<class itk::Image<double,2> >,int)' being compiled
> /C:\Librabries\InsightApplications-2.6.0\InsightApplications-2.6.0\ImageCalculator\Imgmath.h(168) : error C2899: typename cannot be used outside a template declaration
> 
> 
>         C:\Librabries\InsightApplications-2.6.0\InsightApplications-2.6.0\ImageCalculator\ImageCalculatorTemplates.h(640) : see reference to function template instantiation 'class itk::SmartPointer<class itk::Image<double,2> > __cdecl ImageMultiplyC
> 
> 
> onstant(class itk::SmartPointer<class itk::Image<double,2> >,double)' being compiled
> C:\Librabries\InsightApplications-2.6.0\InsightApplications-2.6.0\ImageCalculator\Imgmath.h(185) : error C2899: typename cannot be used outside a template declaration
> 
> 
>         C:\Librabries\InsightApplications-2.6.0\InsightApplications-2.6.0\ImageCalculator\ImageCalculatorTemplates.h(643) : see reference to function template instantiation 'class itk::SmartPointer<class itk::Image<double,2> > __cdecl ImageDivideCon
> 
> 
> stant(class itk::SmartPointer<class itk::Image<double,2> >,double)' being compiled
> ImageCalculatorProcess3D.cxx
> C:\Librabries\InsightApplications-2.6.0\InsightApplications-2.6.0\ImageCalculator\Imgmath.h
> 
> (149) : error C2899: typename cannot be used outside a template declaration
>         C:\Librabries\InsightApplications-2.6.0\InsightApplications-2.6.0\ImageCalculator\ImageCalculatorTemplates.h(635) : see reference to function template instantiation 'class itk::SmartPointer<class itk::Image<double,3> > __cdecl Iavg(class itk
> 
> 
> ::/SmartPointer<class itk::Image<double,3> >,int)' being compiled
> /C:\Librabries\InsightApplications-2.6.0\InsightApplications-2.6.0\ImageCalculator\Imgmath.h(168) : error C2899: typename cannot be used outside a template declaration
> 
> 
>         C:\Librabries\InsightApplications-2.6.0\InsightApplications-2.6.0\ImageCalculator\ImageCalculatorTemplates.h(640) : see reference to function template instantiation 'class itk::SmartPointer<class itk::Image<double,3> > __cdecl ImageMultiplyC
> 
> 
> onstant(class itk::SmartPointer<class itk::Image<double,3> >,double)' being compiled
> C:\Librabries\InsightApplications-2.6.0\InsightApplications-2.6.0\ImageCalculator\Imgmath.h(185) : error C2899: typename cannot be used outside a template declaration
> 
> 
>         C:\Librabries\InsightApplications-2.6.0\InsightApplications-2.6.0\ImageCalculator\ImageCalculatorTemplates.h(643) : see reference to function template instantiation 'class itk::SmartPointer<class itk::Image<double,3> > __cdecl ImageDivideCon
> 
> 
> stant(class itk::SmartPointer<class itk::Image<double,3> >,double)' being compiled
> Generating Code...
> Error executing cl.exe.
> 
> 
> 
> 
> -- 
> Jonghye Woo
> God's Word: Hope for All 'cause He knows Me




More information about the Insight-users mailing list