[Insight-users] Error in building itk application

Jonghye Woo jschant at gmail.com
Mon Jul 10 13:18:05 EDT 2006


Hi all

I have problem in building ITKApplication.

Can you tell me how to solve this problem?

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.

ALL_BUILD - 6 error(s), 0 warning(s)



-- 
Jonghye Woo
God's Word: Hope for All 'cause He knows Me
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20060710/21bb2e57/attachment.htm


More information about the Insight-users mailing list