[Insight-users] strstream errors when compiling itk

Evelyne Balteau e . balteau at ulg . ac . be
Mon, 1 Sep 2003 11:52:17 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0095_01C3707F.7DEF0600
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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. =20
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\DICOMHeaderValue=
s.h(6) : error C2039: 'ostream' : is not a member of 'std'
C:\Toolkits\InsightToolkit\Sources\Utilities\DICOMParser\DICOMHeaderValue=
s.h(11) : error C2039: 'ostream' : is not a member of 'std'
...
and so on...
------=_NextPart_000_0095_01C3707F.7DEF0600
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi all,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I sent a question some times ago about =
errors when=20
compiling itk...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I still get the same kind of errors =
(see below for=20
some examples), although I don't get them when compiling itk on my home=20
computer...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Both computers (my home's and my =
office's) are=20
working under Windows XP Professional, with MSVisualStudio 6.0 - =
sp5.&nbsp;=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The only things differing are the =
windows XP=20
Service Packs and HotFixes, which are not installed at home (I don't =
have any=20
internet connection)...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>If anybody has an idea about what=20
happens...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Or an idea about what I could try to =
solve this=20
problem...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Nice to let me know...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks a lot !</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Evelyne</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>----------------------------------------------------------------=
-------------------------------------------------------------</FONT></DIV=
>
<DIV><FONT face=3DArial size=3D2>Just some lines of the error=20
messages...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Most of them concern the strstream =
header=20
file....</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>--------------------Configuration: =
ITKDICOMParser -=20
Win32=20
Debug--------------------<BR>Compiling...<BR>DICOMFile.cxx<BR>C:\MSVStudi=
o6\VC98\INCLUDE\../include/strstream(20)=20
: error C2061: syntax error : identifier=20
'_Strstate'<BR>C:\MSVStudio6\VC98\INCLUDE\../include/strstream(21) : =
error=20
C2629: unexpected 'class std::strstreambuf=20
('<BR>C:\MSVStudio6\VC98\INCLUDE\../include/strstream(21) : error C2334: =

unexpected token(s) preceding '{'; skipping apparent function=20
body<BR>C:\MSVStudio6\VC98\INCLUDE\../include/strstream(26) : error =
C2629:=20
unexpected 'class std::strstreambuf=20
('<BR>C:\MSVStudio6\VC98\INCLUDE\../include/strstream(26) : error C2334: =

unexpected token(s) preceding '{'; skipping apparent function=20
body<BR>C:\MSVStudio6\VC98\INCLUDE\../include/strstream(28) : error =
C2629:=20
unexpected 'class std::strstreambuf=20
('<BR>C:\MSVStudio6\VC98\INCLUDE\../include/strstream(28) : error C2334: =

unexpected token(s) preceding '{'; skipping apparent function=20
body<BR>C:\MSVStudio6\VC98\INCLUDE\../include/strstream(31) : error =
C2629:=20
unexpected 'class std::strstreambuf=20
('<BR>C:\MSVStudio6\VC98\INCLUDE\../include/strstream(31) : error C2334: =

unexpected token(s) preceding '{'; skipping apparent function=20
body<BR>C:\MSVStudio6\VC98\INCLUDE\../include/strstream(33) : error =
C2629:=20
unexpected 'class std::strstreambuf=20
('<BR>C:\MSVStudio6\VC98\INCLUDE\../include/strstream(33) : error C2334: =

unexpected token(s) preceding '{'; skipping apparent function=20
body<BR>C:\MSVStudio6\VC98\INCLUDE\../include/strstream(40) : error =
C2146:=20
syntax error : missing ';' before identifier=20
'pcount'<BR>C:\MSVStudio6\VC98\INCLUDE\../include/strstream(40) : error =
C2501:=20
'streamsize' : missing storage-class or type=20
specifiers<BR>C:\MSVStudio6\VC98\INCLUDE\../include/strstream(41) : =
warning=20
C4183: 'pcount': member function definition looks like a ctor, but name =
does not=20
match enclosing =
class<BR>C:\MSVStudio6\VC98\INCLUDE\../include/strstream(42) :=20
error C2629: unexpected 'class std::strstreambuf=20
('<BR>C:\MSVStudio6\VC98\INCLUDE\../include/strstream(42) : error C2334: =

unexpected token(s) preceding '{'; skipping apparent function=20
body<BR>C:\MSVStudio6\VC98\INCLUDE\../include/strstream(45) : error =
C2629:=20
unexpected 'class std::strstreambuf=20
('<BR>C:\MSVStudio6\VC98\INCLUDE\../include/strstream(45) : error C2334: =

unexpected token(s) preceding '{'; skipping apparent function=20
body<BR>C:\MSVStudio6\VC98\INCLUDE\../include/strstream(51) : error =
C2039:=20
'seekdir' : is not a member of=20
'ios'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
C:\MSVStudio6\VC98\INCLUDE\ios.h(106) : see declaration of=20
'ios'<BR>C:\MSVStudio6\VC98\INCLUDE\../include/strstream(51) : error =
C2061:=20
syntax error : identifier=20
'seekdir'<BR>C:\MSVStudio6\VC98\INCLUDE\../include/strstream(54) : error =
C2039:=20
'openmode' : is not a member of=20
'ios'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
C:\MSVStudio6\VC98\INCLUDE\ios.h(106) : see declaration of=20
'ios'<BR>C:\MSVStudio6\VC98\INCLUDE\../include/strstream(54) : error =
C2061:=20
syntax error : identifier=20
'openmode'<BR>C:\MSVStudio6\VC98\INCLUDE\../include/strstream(56) : =
error C2061:=20
syntax error : identifier=20
'_Strstate'<BR>C:\MSVStudio6\VC98\INCLUDE\../include/strstream(62) : =
error=20
C2146: syntax error : missing ';' before identifier=20
'_Strmode'<BR>C:\MSVStudio6\VC98\INCLUDE\../include/strstream(62) : =
error C2501:=20
'_Strstate' : missing storage-class or type=20
specifiers<BR>C:\MSVStudio6\VC98\INCLUDE\../include/strstream(62) : =
error C2501:=20
'_Strmode' : missing storage-class or type=20
specifiers<BR>C:\MSVStudio6\VC98\INCLUDE\../include/strstream(68) : =
error C2143:=20
syntax error : missing ';' before=20
'&lt;class-head&gt;'<BR>C:\MSVStudio6\VC98\INCLUDE\../include/strstream(6=
8) :=20
fatal error C1004: unexpected end of file=20
found<BR>DICOMParser.cxx<BR>C:\Toolkits\InsightToolkit\Sources\Utilities\=
DICOMParser\DICOMHeaderValues.h(6)=20
: error C2039: 'ostream' : is not a member of=20
'std'<BR>C:\Toolkits\InsightToolkit\Sources\Utilities\DICOMParser\DICOMHe=
aderValues.h(11)=20
: error C2039: 'ostream' : is not a member of 'std'<BR>...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and so on...</DIV></FONT></BODY></HTML>

------=_NextPart_000_0095_01C3707F.7DEF0600--