[Insight-users] Problems when building ITK based applications in
a Visual C++6 environment
Henry Joye
henryjoye at yahoo.com
Mon Sep 27 14:38:57 EDT 2004
Hi, Luis,
Thanks a lot for your detail reply.
> 2) Before you continue, please make sure that you
> install the Service Pack 6 for Visual Studio.
> VC++ 6.0 has a number of bugs that will prevent
> you from building ITK if you don't apply the
> service pack first.
I installed the Service Pack 6 and the problems are
still like before.
> 3) The error messages that you get now are related
> to
> functions like
>
> acosf
> asinf
> atanf
>
> that are defined in the header file
> "math.h"/"cmath"
>
> are you doing something special with these
> headers
> in your project ? e.g. mixing both styles of
> headers ?
Yes, you are right. I am using "math.h" in my original
project, but I donot use "cmath". "cmath" only appears
in ITK. I just changed "math.h" in my original project
to "cmath" and the problems are still like before.
>
> 4) Again..., you will save a lot of time, not only
> now but
> also along the development of your project, if
> you use
> CMake for configuration. The fact of having a
> large
> project is actually a stronger motivation for
> migrating
> to CMake.
>
Thank you very much for your suggestion. I just want
to get the first view of my segmentation result. It is
better if I can build my project without spending much
time for writing CMakelists files at the moment. It is
highly appreciated if you give me more information
about solving these problems.
Best regards,
Joye
> > Hi, Luis,
> >
> > Thank you very much for your reply.
> >
> > As you pointed out, I also want to use CMake to
> build
> > the project. But my problem is that I just add a
> > segmentation module into my existing Inventor
> based
> > visualization project. I didnot create a new ITK
> based
> > project from beginning. The existing project is a
> > little large and includes a lot of files and
> folders.
> > So I think it is an easy way to add ITK based
> > segmentation module directly into the existing
> VC++
> > project, but not using CMake.
> >
> > My problem is whether it is possible to
> automatically
> > convert existing VC++ project file to CMake's
> > CMakeLists.txt files or how to convert the
> existing
> > VC++ project file to CMake's CMakelists.tet files.
>
> >
> > I have added /GR compiler option to the project
> and
> > the previous warnings disappear. But other
> problems
> > appear. I add some including paths as the project
> > required step by step, e.g.
> >
>
\INSIGHTTOOLKIT18\UTILITIES\VXL\CORE,\INSIGHTTOOLKIT18\UTILITIES\VXL\VCL,
> > \ITKBIN\UTILITIES\VXL\CORE,
> \ITKBIN\UTILITIES\VXL\VCL.
> > When building the project, the following errors
> appear
> > for each file related to ITK:
> >
> >
>
e:\insighttoolkit18\utilities\vxl\vcl\win32-vc60\vcl_cmath.h(85)
> > : error C2589: '(' : illegal token on right side
> of
> > '::'
> >
>
e:\insighttoolkit18\utilities\vxl\vcl\win32-vc60\vcl_cmath.h(85)
> > : error C2059: syntax error : '::'
> >
>
e:\insighttoolkit18\utilities\vxl\vcl\win32-vc60\vcl_cmath.h(89)
> > : error C2589: '(' : illegal token on right side
> of
> > '::'
> >
>
e:\insighttoolkit18\utilities\vxl\vcl\win32-vc60\vcl_cmath.h(89)
> > : error C2059: syntax error : '::'
> >
>
e:\insighttoolkit18\utilities\vxl\vcl\win32-vc60\vcl_cmath.h(93)
> > : error C2589: '(' : illegal token on right side
> of
> > '::'
> >
>
e:\insighttoolkit18\utilities\vxl\vcl\win32-vc60\vcl_cmath.h(93)
> > : error C2059: syntax error : '::'
> > .............
> >
>
d:\itk\insighttoolkit\code\common\itkconceptchecking.h(318)
> > : error C2653: 'Detail' : is not a class or
> namespace
> > name
> >
> >
>
e:\insighttoolkit18\code\common\itkconceptchecking.h(328)
> > : see reference to class template instantiation
> > 'Signed<T>' being compiled
> >
>
e:\insighttoolkit18\code\common\itkconceptchecking.h(318)
> > : error C2143: syntax error : missing ';' before
> '<'
> >
> >
>
e:\insighttoolkit18\code\common\itkconceptchecking.h(328)
> > : see reference to class template instantiation
> > 'Signed<T>' being compiled
> >
>
e:\insighttoolkit18\code\common\itkconceptchecking.h(318)
> > : error C2059: syntax error : '<'
> >
> >
>
e:\insighttoolkit18\code\common\itkconceptchecking.h(328)
> > : see reference to class template instantiation
> > 'Signed<T>' being compiled
> >
>
e:\insighttoolkit18\code\common\itkconceptchecking.h(318)
> > : error C2238: unexpected token(s) preceding ';'
> >
> >
>
e:\insighttoolkit18\code\common\itkconceptchecking.h(328)
> > : see reference to class template instantiation
> > 'Signed<T>' being compiled
> > ..................
> >
> > Would you please tell me how to solve these
> problems?
> >
> > Thanks a lot for your help.
> >
> > Joye
> >
> >
> >
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
More information about the Insight-users
mailing list