[Insight-users] Installation problems

aragondp at cs.tamu.edu aragondp at cs.tamu.edu
Sun, 7 Mar 2004 17:01:59 -0600


Hi,

I tried installing ITK two days back. Genrating build files using CMake gave no
problems. Then I proceeded to check examples which also gave no problems in the
first step where CMake generates files. But, then I tried opening workspace in
Visual Studio 6.0 ( My machine runs on Windows-XP), when I got some errors while
building. 

Today, I realised I skipped the last step while installing,i.e., building files
in Visual Studio 6.0 after generating build files using CMake. I tried opening
itk.dsw in VS-6.0, but while building under the heading "Configuration:
ITKMetaIO - Win32 Debug" I got many errors, and most of these errors refer to
some variables redefined, type redefinition, function redefinition and almost
all of these point to STL include files.

I am pasting first few lines of errors here:


--------------------Configuration: ITKMetaIO - Win32 Debug--------------------
Compiling...
metaBlob.cxx
C:Program FilesMicrosoft Visual StudioVC98INCLUDEstl_config.h(383) :
warning C4005: 'NOMINMAX' : macro redefinition
        unknown(0) : see previous definition of 'NOMINMAX'
C:Program FilesMicrosoft Visual StudioVC98INCLUDEstl_pair.h(50) : error
C2953: 'pair' : template class has already been defined
        C:Program FilesMicrosoft Visual StudioVC98INCLUDEstl_pair.h(50) :
see declaration of 'pair'
C:Program FilesMicrosoft Visual StudioVC98INCLUDEstl_pair.h(56) : error
C2995: '==' : template function has already been defined
        C:Program FilesMicrosoft Visual StudioVC98INCLUDEutility(29) : see
declaration of '=='
C:Program FilesMicrosoft Visual StudioVC98INCLUDEstl_pair.h(63) : error
C2995: '<' : template function has already been defined
        C:Program FilesMicrosoft Visual StudioVC98INCLUDEutility(37) : see
declaration of '<'
-------------------------------------------------------------------------------

I tried different ways like deleting previous build files, building from scratch
again, deleting everything and building with BUILD_TESTING set to OFF etc., I
saw on net that setting run-time library in Project Settings to MULTITHREADED
DLL helps as opposed to default SINGLE THREADED DLL and tried changing this
option also. But, I got the same list of about 240 errors everytime. I think
there should be some option that eliminates all these errors.

If someone has faced this problem before, or if you have any idea regarding
this, can you please help me with this as I need to get ITK running soon.

Thanks in advance,
Prathyusha.