[Insight-users] Problems with itk and streams under VC++

Miller, James V (CRD) millerjv at crd.ge.com
Tue Dec 11 10:21:47 EST 2001


What file was compiling at the time the error occurred?
 
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.
 
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.
 
So QT might be trying to use the old streams library.
 
Try putting itkImage.h as the first include file in your application.  

-----Original Message-----
From: Nils Hanßen [mailto:hanssen at caesar.de]
Sent: Tuesday, December 11, 2001 9:54 AM
To: insight-users at public.kitware.com
Subject: [Insight-users] Problems with itk and streams under VC++


Hello all,
 
i encounter problems when i try to create a QT application that uses itk. 
When i include <itkImage.h> for example, it produces an error C2039. More precise, it says:
 
c:\programme\microsoft visual studio\vc98\include\strstream(51) : error C2039: 'seekdir' : is no
element of 'ios'
        c:\programme\microsoft visual studio\vc98\include\ios.h(106) : see declaration of 'ios'
 
Does itk use a different definition of streams?
I looked into the document "Building an ITK Application in Visual C++ 6.0" and this issue is not
mentioned there.
 
Thanks in advance for any comments or hints!
 
Regards
Nils

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://itk.org/pipermail/insight-users/attachments/20011211/0462006a/attachment-0001.html>


More information about the Insight-users mailing list