[Insight-users] strstream errors when compiling itk
Luis Ibanez
luis . ibanez at kitware . com
Tue, 02 Sep 2003 23:08:20 -0400
Hi Evelyne,
Since you are getting errors with the VC98 own headers
this looks like a compiler installation problem.
You probably would not like the suggestion... but ... you
may have to reinstall your VC60 compiler.
Luis
-------------------------
Evelyne Balteau wrote:
> Hi all,
>
> I sent a question some times ago about errors when compiling itk...
> I still get the same kind of errors (see below for some examples),
> although I don't get them when compiling itk on my home computer...
> Both computers (my home's and my office's) are working under Windows XP
> Professional, with MSVisualStudio 6.0 - sp5.
> The only things differing are the windows XP Service Packs and HotFixes,
> which are not installed at home (I don't have any internet connection)...
> If anybody has an idea about what happens...
> Or an idea about what I could try to solve this problem...
> Nice to let me know...
>
> Thanks a lot !
>
> Evelyne
>
> -----------------------------------------------------------------------------------------------------------------------------
> Just some lines of the error messages...
> Most of them concern the strstream header file....
>
> --------------------Configuration: ITKDICOMParser - Win32
> Debug--------------------
> Compiling...
> DICOMFile.cxx
> C:\MSVStudio6\VC98\INCLUDE\../include/strstream(20) : error C2061:
> syntax error : identifier '_Strstate'
> C:\MSVStudio6\VC98\INCLUDE\../include/strstream(21) : error C2629:
> unexpected 'class std::strstreambuf ('
> C:\MSVStudio6\VC98\INCLUDE\../include/strstream(21) : error C2334:
> unexpected token(s) preceding '{'; skipping apparent function body
> C:\MSVStudio6\VC98\INCLUDE\../include/strstream(26) : error C2629:
> unexpected 'class std::strstreambuf ('
> C:\MSVStudio6\VC98\INCLUDE\../include/strstream(26) : error C2334:
> unexpected token(s) preceding '{'; skipping apparent function body
> C:\MSVStudio6\VC98\INCLUDE\../include/strstream(28) : error C2629:
> unexpected 'class std::strstreambuf ('
> C:\MSVStudio6\VC98\INCLUDE\../include/strstream(28) : error C2334:
> unexpected token(s) preceding '{'; skipping apparent function body
> C:\MSVStudio6\VC98\INCLUDE\../include/strstream(31) : error C2629:
> unexpected 'class std::strstreambuf ('
> C:\MSVStudio6\VC98\INCLUDE\../include/strstream(31) : error C2334:
> unexpected token(s) preceding '{'; skipping apparent function body
> C:\MSVStudio6\VC98\INCLUDE\../include/strstream(33) : error C2629:
> unexpected 'class std::strstreambuf ('
> C:\MSVStudio6\VC98\INCLUDE\../include/strstream(33) : error C2334:
> unexpected token(s) preceding '{'; skipping apparent function body
> C:\MSVStudio6\VC98\INCLUDE\../include/strstream(40) : error C2146:
> syntax error : missing ';' before identifier 'pcount'
> C:\MSVStudio6\VC98\INCLUDE\../include/strstream(40) : error C2501:
> 'streamsize' : missing storage-class or type specifiers
> C:\MSVStudio6\VC98\INCLUDE\../include/strstream(41) : warning C4183:
> 'pcount': member function definition looks like a ctor, but name does
> not match enclosing class
> C:\MSVStudio6\VC98\INCLUDE\../include/strstream(42) : error C2629:
> unexpected 'class std::strstreambuf ('
> C:\MSVStudio6\VC98\INCLUDE\../include/strstream(42) : error C2334:
> unexpected token(s) preceding '{'; skipping apparent function body
> C:\MSVStudio6\VC98\INCLUDE\../include/strstream(45) : error C2629:
> unexpected 'class std::strstreambuf ('
> C:\MSVStudio6\VC98\INCLUDE\../include/strstream(45) : error C2334:
> unexpected token(s) preceding '{'; skipping apparent function body
> C:\MSVStudio6\VC98\INCLUDE\../include/strstream(51) : error C2039:
> 'seekdir' : is not a member of 'ios'
> C:\MSVStudio6\VC98\INCLUDE\ios.h(106) : see declaration of 'ios'
> C:\MSVStudio6\VC98\INCLUDE\../include/strstream(51) : error C2061:
> syntax error : identifier 'seekdir'
> C:\MSVStudio6\VC98\INCLUDE\../include/strstream(54) : error C2039:
> 'openmode' : is not a member of 'ios'
> C:\MSVStudio6\VC98\INCLUDE\ios.h(106) : see declaration of 'ios'
> C:\MSVStudio6\VC98\INCLUDE\../include/strstream(54) : error C2061:
> syntax error : identifier 'openmode'
> C:\MSVStudio6\VC98\INCLUDE\../include/strstream(56) : error C2061:
> syntax error : identifier '_Strstate'
> C:\MSVStudio6\VC98\INCLUDE\../include/strstream(62) : error C2146:
> syntax error : missing ';' before identifier '_Strmode'
> C:\MSVStudio6\VC98\INCLUDE\../include/strstream(62) : error C2501:
> '_Strstate' : missing storage-class or type specifiers
> C:\MSVStudio6\VC98\INCLUDE\../include/strstream(62) : error C2501:
> '_Strmode' : missing storage-class or type specifiers
> C:\MSVStudio6\VC98\INCLUDE\../include/strstream(68) : error C2143:
> syntax error : missing ';' before '<class-head>'
> C:\MSVStudio6\VC98\INCLUDE\../include/strstream(68) : fatal error C1004:
> unexpected end of file found
> DICOMParser.cxx
> C:\Toolkits\InsightToolkit\Sources\Utilities\DICOMParser\DICOMHeaderValues.h(6)
> : error C2039: 'ostream' : is not a member of 'std'
> C:\Toolkits\InsightToolkit\Sources\Utilities\DICOMParser\DICOMHeaderValues.h(11)
> : error C2039: 'ostream' : is not a member of 'std'
> ...
> and so on...