<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=626211715-11122001><FONT color=#0000ff size=2>What file was
compiling at the time the error occurred?</FONT></SPAN></DIV>
<DIV><SPAN class=626211715-11122001><FONT color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=626211715-11122001><FONT color=#0000ff size=2>ITK requires the
new C++ streams library be used from the C++ Standard Library. These
headers are of the type <strstream> as opposed to
<strstream.h>. From the snippet you provided, it looks like the
correct streams header is being used.</FONT></SPAN></DIV>
<DIV><SPAN class=626211715-11122001><FONT color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=626211715-11122001><FONT color=#0000ff size=2>Depending on what
you were compiling (for instance an application that you are writing), a header
from the old streams library might have been included prior to ITK including a
file from the streams library. The two streams libraries cannot be
mixed.</FONT></SPAN></DIV>
<DIV><SPAN class=626211715-11122001><FONT color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=626211715-11122001><FONT color=#0000ff size=2>So QT might be
trying to use the old streams library.</FONT></SPAN></DIV>
<DIV><SPAN class=626211715-11122001><FONT color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=626211715-11122001><FONT color=#0000ff size=2>Try putting
itkImage.h as the first include file in your application.
</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Nils Hanßen
[mailto:hanssen@caesar.de]<BR><B>Sent:</B> Tuesday, December 11, 2001 9:54
AM<BR><B>To:</B> insight-users@public.kitware.com<BR><B>Subject:</B>
[Insight-users] Problems with itk and streams under VC++<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=343194314-11122001>Hello
all,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=343194314-11122001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=343194314-11122001>i encounter
problems when i try to create a QT application that uses itk.
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=343194314-11122001>When i include
<itkImage.h> for example, it produces an error C2039. More precise, it
says:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=343194314-11122001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2>c:\programme\microsoft visual
studio\vc98\include\strstream(51) : error C2039: 'seekdir' : <SPAN
class=343194314-11122001>is no element of</SPAN>
'ios'<BR> c:\programme\microsoft
visual studio\vc98\include\ios.h(106) : <SPAN
class=343194314-11122001>see declaration of </SPAN>'ios'</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=343194314-11122001>Does itk use a
different definition of streams?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=343194314-11122001>I looked into the
document "Building an ITK Application in Visual C++ 6.0" and this issue is not
mentioned there.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=343194314-11122001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=343194314-11122001>Thanks in advance
for any comments or hints!</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=343194314-11122001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=343194314-11122001>Regards</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=343194314-11122001>Nils</SPAN></FONT></DIV></BLOCKQUOTE></BODY></HTML>