[Insight-users] strstream errors when compiling itk
Evelyne Balteau
e . balteau at ulg . ac . be
Wed, 3 Sep 2003 09:34:29 +0200
This is a multi-part message in MIME format.
------=_NextPart_000_0089_01C371FE.9301DAB0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
That is just what I was wondering : how could you set this directories =
list project-dependant ?
Could you tell me how to use CMake for this purpose ?
Thank you a lot !
Best regards,
Evelyne
----- Original Message -----=20
From: Luis Ibanez=20
To: Evelyne Balteau=20
Cc: insight-users at public . kitware . com=20
Sent: Wednesday, September 03, 2003 9:10 AM
Subject: Re: [Insight-users] strstream errors when compiling itk
Hi Evelyne,
I'm glad you found the solution to your problem.
You may want to clean the Tools->Options->Directories
in Visual Studio. CMake makes this VC++ options obsolete.
As you just found, the annoying danger of this VC menu
is that the directories there are shared by all the
projects you have.
A CMake-generated VC++ workspace will help you to
maintain project dependencies without having to be
exposed to the vulnerabilities of VisualStudio.
Regards,
Luis
----------------------
Evelyne Balteau wrote:
> Thanks, Luis !
> I had it done yet, and it did not work, but finally I found what was =
> happening...
....
> I had a mixing problem with another library I needed to compile =
another=20
> application, and which was listed in the Tools->Options->Directories =
> /*before/* the VS6.0's one...
> That's all !!!
> Evelyne
>=20
> ----- Original Message -----
> *From:* Luis Ibanez <mailto:luis . ibanez at kitware . com>
> *To:* Evelyne Balteau <mailto:e . balteau at ulg . ac . be>
> *Cc:* insight-users at itk . org <mailto:insight-users at itk . org>
> *Sent:* Wednesday, September 03, 2003 5:08 AM
> *Subject:* Re: [Insight-users] strstream errors when compiling =
itk
>=20
>=20
> Hi Evelyne,
>=20
> Since you are getting errors with the VC98 own headers
> this looks like a compiler installation problem.
>=20
> You probably would not like the suggestion... but ... you
> may have to reinstall your VC60 compiler.
>=20
>=20
>=20
> Luis
>=20
>=20
> -------------------------
> Evelyne Balteau wrote:
> > Hi all,
> >=20
> > 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...
> >=20
> > Thanks a lot !
> >=20
> > Evelyne
> >=20
> >
> =
-------------------------------------------------------------------------=
----------------------------------------------------
> > Just some lines of the error messages...
> > Most of them concern the strstream header file....
> >=20
> > --------------------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)
>=20
> > : error C2039: 'ostream' : is not a member of 'std'
> >
> =
C:\Toolkits\InsightToolkit\Sources\Utilities\DICOMParser\DICOMHeaderValue=
s.h(11)
>=20
> > : error C2039: 'ostream' : is not a member of 'std'
> > ...
> > and so on...
>=20
>=20
>=20
>=20
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk . org <mailto:Insight-users at itk . org>
> http://www . itk . org/mailman/listinfo/insight-users
>=20
_______________________________________________
Insight-users mailing list
Insight-users at itk . org
http://www . itk . org/mailman/listinfo/insight-users
------=_NextPart_000_0089_01C371FE.9301DAB0
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.1226" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>That is just what I was wondering : how =
could you=20
set this directories list project-dependant ?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Could you tell me how to use CMake for =
this purpose=20
?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Thank you a lot !</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Best regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Evelyne</FONT></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A title=3Dluis . ibanez at kitware . com =
href=3D"mailto:luis . ibanez at kitware . com">Luis=20
Ibanez</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3De . balteau at ulg . ac . be=20
href=3D"mailto:e . balteau at ulg . ac . be">Evelyne Balteau</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>Cc:</B> <A=20
title=3Dinsight-users at public . kitware . com=20
=
href=3D"mailto:insight-users at public . kitware . com">insight-users at public . kit=
ware.com</A>=20
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Wednesday, September 03, =
2003 9:10=20
AM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: [Insight-users] =
strstream=20
errors when compiling itk</DIV>
<DIV><BR></DIV><BR>Hi Evelyne,<BR><BR>I'm glad you found the solution =
to your=20
problem.<BR><BR>You may want to clean the=20
Tools->Options->Directories<BR>in Visual Studio. CMake =
makes this=20
VC++ options obsolete.<BR><BR>As you just found, the annoying danger =
of this=20
VC menu<BR>is that the directories there are shared by all =
the<BR>projects you=20
have.<BR><BR>A CMake-generated VC++ workspace will help you =
to<BR>maintain=20
project dependencies without having to be<BR>exposed to the =
vulnerabilities of=20
VisualStudio.<BR><BR><BR><BR> =20
Regards,<BR><BR><BR> =20
Luis<BR><BR><BR>----------------------<BR>Evelyne Balteau =
wrote:<BR>>=20
Thanks, Luis !<BR>> I had it done yet, and it did not work, but =
finally I=20
found what was <BR>> happening...<BR>....<BR>> I had a mixing =
problem=20
with another library I needed to compile another <BR>> application, =
and=20
which was listed in the Tools->Options->Directories <BR>> =
/*before/*=20
the VS6.0's one...<BR>> That's all !!!<BR>> Evelyne<BR>>=20
<BR>> ----- Original Message=20
-----<BR>> *From:* Luis Ibanez <<A=20
=
href=3D"mailto:luis . ibanez at kitware . com">mailto:luis . ibanez at kitware . com</A=
>><BR>> =20
*To:* Evelyne Balteau <<A=20
=
href=3D"mailto:e . balteau at ulg . ac . be">mailto:e . balteau at ulg . ac . be</A>><BR=
>> =20
*Cc:* <A =
href=3D"mailto:insight-users at itk . org">insight-users at itk . org</A> <<A=20
=
href=3D"mailto:insight-users at itk . org">mailto:insight-users at itk . org</A>>=
;<BR>> =20
*Sent:* Wednesday, September 03, 2003 5:08 =
AM<BR>> =20
*Subject:* Re: [Insight-users] strstream errors when compiling =
itk<BR>>=20
<BR>> <BR>> Hi Evelyne,<BR>>=20
<BR>> Since you are getting errors with the =
VC98 own headers<BR>> this looks like =
a=20
compiler installation problem.<BR>> =
<BR>> You=20
probably would not like the suggestion... but ...=20
you<BR>> may have to reinstall your VC60=20
compiler.<BR>> <BR>> <BR>>=20
<BR>> Luis<BR>> =
<BR>>=20
<BR>> =20
-------------------------<BR>> Evelyne =
Balteau=20
wrote:<BR>> > Hi=20
all,<BR>> >=20
<BR>> > I sent a question some =
times ago=20
about errors when compiling =
itk...<BR>> >=20
I still get the same kind of errors (see below for some=20
examples),<BR>> > although I don't =
get=20
them when compiling itk on my home=20
computer...<BR>> > Both computers =
(my=20
home's and my office's) are working =
under<BR>> =20
Windows XP<BR>> > Professional, =
with=20
MSVisualStudio 6.0 - sp5.<BR>> > =
The only=20
things differing are the windows XP Service Packs=20
and<BR>> =20
HotFixes,<BR>> > which are not =
installed=20
at home (I don't have any internet<BR>> =20
connection)...<BR>> > If anybody =
has an=20
idea about what happens...<BR>> > =
Or an=20
idea about what I could try to solve this=20
problem...<BR>> > Nice to let me=20
know...<BR>> >=20
<BR>> > Thanks a lot=20
!<BR>> >=20
<BR>> >=20
Evelyne<BR>> >=20
<BR>> =
><BR>> =20
=
-------------------------------------------------------------------------=
----------------------------------------------------<BR>> &=
nbsp; =20
> Just some lines of the error=20
messages...<BR>> > Most of them =
concern=20
the strstream header file....<BR>> =
>=20
<BR>> > =
--------------------Configuration:=20
ITKDICOMParser - Win32<BR>> >=20
Debug--------------------<BR>> >=20
Compiling...<BR>> >=20
DICOMFile.cxx<BR>> >=20
C:\MSVStudio6\VC98\INCLUDE\../include/strstream(20) : error=20
C2061:<BR>> > syntax error : =
identifier=20
'_Strstate'<BR>> >=20
C:\MSVStudio6\VC98\INCLUDE\../include/strstream(21) : error=20
C2629:<BR>> > unexpected 'class=20
std::strstreambuf ('<BR>> >=20
C:\MSVStudio6\VC98\INCLUDE\../include/strstream(21) : error=20
C2334:<BR>> > unexpected token(s)=20
preceding '{'; skipping apparent function=20
body<BR>> >=20
C:\MSVStudio6\VC98\INCLUDE\../include/strstream(26) : error=20
C2629:<BR>> > unexpected 'class=20
std::strstreambuf ('<BR>> >=20
C:\MSVStudio6\VC98\INCLUDE\../include/strstream(26) : error=20
C2334:<BR>> > unexpected token(s)=20
preceding '{'; skipping apparent function=20
body<BR>> >=20
C:\MSVStudio6\VC98\INCLUDE\../include/strstream(28) : error=20
C2629:<BR>> > unexpected 'class=20
std::strstreambuf ('<BR>> >=20
C:\MSVStudio6\VC98\INCLUDE\../include/strstream(28) : error=20
C2334:<BR>> > unexpected token(s)=20
preceding '{'; skipping apparent function=20
body<BR>> >=20
C:\MSVStudio6\VC98\INCLUDE\../include/strstream(31) : error=20
C2629:<BR>> > unexpected 'class=20
std::strstreambuf ('<BR>> >=20
C:\MSVStudio6\VC98\INCLUDE\../include/strstream(31) : error=20
C2334:<BR>> > unexpected token(s)=20
preceding '{'; skipping apparent function=20
body<BR>> >=20
C:\MSVStudio6\VC98\INCLUDE\../include/strstream(33) : error=20
C2629:<BR>> > unexpected 'class=20
std::strstreambuf ('<BR>> >=20
C:\MSVStudio6\VC98\INCLUDE\../include/strstream(33) : error=20
C2334:<BR>> > unexpected token(s)=20
preceding '{'; skipping apparent function=20
body<BR>> >=20
C:\MSVStudio6\VC98\INCLUDE\../include/strstream(40) : error=20
C2146:<BR>> > syntax error : =
missing ';'=20
before identifier 'pcount'<BR>> >=20
C:\MSVStudio6\VC98\INCLUDE\../include/strstream(40) : error=20
C2501:<BR>> > 'streamsize' : =
missing=20
storage-class or type specifiers<BR>> =
>=20
C:\MSVStudio6\VC98\INCLUDE\../include/strstream(41) : warning=20
C4183:<BR>> > 'pcount': member =
function=20
definition looks like a ctor, but name<BR>> =
does<BR>> > not match enclosing=20
class<BR>> >=20
C:\MSVStudio6\VC98\INCLUDE\../include/strstream(42) : error=20
C2629:<BR>> > unexpected 'class=20
std::strstreambuf ('<BR>> >=20
C:\MSVStudio6\VC98\INCLUDE\../include/strstream(42) : error=20
C2334:<BR>> > unexpected token(s)=20
preceding '{'; skipping apparent function=20
body<BR>> >=20
C:\MSVStudio6\VC98\INCLUDE\../include/strstream(45) : error=20
C2629:<BR>> > unexpected 'class=20
std::strstreambuf ('<BR>> >=20
C:\MSVStudio6\VC98\INCLUDE\../include/strstream(45) : error=20
C2334:<BR>> > unexpected token(s)=20
preceding '{'; skipping apparent function=20
body<BR>> >=20
C:\MSVStudio6\VC98\INCLUDE\../include/strstream(51) : error=20
C2039:<BR>> > 'seekdir' : is not a =
member=20
of 'ios'<BR>> =20
> =20
C:\MSVStudio6\VC98\INCLUDE\ios.h(106) : see=20
declaration<BR>> of=20
'ios'<BR>> >=20
C:\MSVStudio6\VC98\INCLUDE\../include/strstream(51) : error=20
C2061:<BR>> > syntax error : =
identifier=20
'seekdir'<BR>> >=20
C:\MSVStudio6\VC98\INCLUDE\../include/strstream(54) : error=20
C2039:<BR>> > 'openmode' : is not =
a member=20
of 'ios'<BR>> =20
> =20
C:\MSVStudio6\VC98\INCLUDE\ios.h(106) : see=20
declaration<BR>> of=20
'ios'<BR>> >=20
C:\MSVStudio6\VC98\INCLUDE\../include/strstream(54) : error=20
C2061:<BR>> > syntax error : =
identifier=20
'openmode'<BR>> >=20
C:\MSVStudio6\VC98\INCLUDE\../include/strstream(56) : error=20
C2061:<BR>> > syntax error : =
identifier=20
'_Strstate'<BR>> >=20
C:\MSVStudio6\VC98\INCLUDE\../include/strstream(62) : error=20
C2146:<BR>> > syntax error : =
missing ';'=20
before identifier '_Strmode'<BR>> =
>=20
C:\MSVStudio6\VC98\INCLUDE\../include/strstream(62) : error=20
C2501:<BR>> > '_Strstate' : =
missing=20
storage-class or type specifiers<BR>> =
>=20
C:\MSVStudio6\VC98\INCLUDE\../include/strstream(62) : error=20
C2501:<BR>> > '_Strmode' : missing =
storage-class or type specifiers<BR>> =
>=20
C:\MSVStudio6\VC98\INCLUDE\../include/strstream(68) : error=20
C2143:<BR>> > syntax error : =
missing ';'=20
before '<class-head>'<BR>> > =
C:\MSVStudio6\VC98\INCLUDE\../include/strstream(68) : fatal=20
error<BR>> =20
C1004:<BR>> > unexpected end of =
file=20
found<BR>> >=20
DICOMParser.cxx<BR>> =20
><BR>> =20
=
C:\Toolkits\InsightToolkit\Sources\Utilities\DICOMParser\DICOMHeaderValue=
s.h(6)<BR>>=20
<BR>> > : error C2039: 'ostream' : =
is not=20
a member of 'std'<BR>> =20
><BR>> =20
=
C:\Toolkits\InsightToolkit\Sources\Utilities\DICOMParser\DICOMHeaderValue=
s.h(11)<BR>>=20
<BR>> > : error C2039: 'ostream' : =
is not=20
a member of 'std'<BR>> >=20
...<BR>> > and so on...<BR>> =
<BR>>=20
<BR>> <BR>> <BR>> =20
=
_______________________________________________<BR>> =
=20
Insight-users mailing list<BR>> <A=20
href=3D"mailto:Insight-users at itk . org">Insight-users at itk . org</A> <<A =
=
href=3D"mailto:Insight-users at itk . org">mailto:Insight-users at itk . org</A>>=
;<BR>> =20
<A=20
=
href=3D"http://www . itk . org/mailman/listinfo/insight-users">http://www . itk=
.org/mailman/listinfo/insight-users</A><BR>>=20
=
<BR><BR><BR><BR><BR>_______________________________________________<BR>In=
sight-users=20
mailing list<BR><A=20
href=3D"mailto:Insight-users at itk . org">Insight-users at itk . org</A><BR><A=20
=
href=3D"http://www . itk . org/mailman/listinfo/insight-users">http://www . itk=
.org/mailman/listinfo/insight-users</A><BR></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_0089_01C371FE.9301DAB0--