<!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.00.3105.105" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2>
<DIV><FONT color=#0000ff><SPAN class=062023815-11122001>Thanks for the hint (and
Stephen), it seem<SPAN class=937034415-11122001>s</SPAN> to work
now...</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff><SPAN class=062023815-11122001>However, the linker is
missing some symbols. Could this be a cosequence of the former
problem?</SPAN></FONT></DIV>
<DIV><SPAN class=062023815-11122001></SPAN><FONT
color=#0000ff> </FONT></DIV>
<DIV><FONT color=#0000ff><SPAN class=062023815-11122001>The missing symbols
are (sorry, the explantory text of the compiler is in
german):</SPAN></FONT></DIV>
<DIV><SPAN class=062023815-11122001></SPAN><FONT
color=#0000ff> </FONT></DIV>
<DIV><FONT color=#0000ff face=Courier size=1><SPAN
class=062023815-11122001>ButtonDialog.obj : error LNK2001: Nichtaufgeloestes
externes Symbol "protected: virtual void __thiscall
itk::Region::PrintTrailer(class std::basic_ostream<char,struct
std::char_traits<char> > &,class itk::Indent)const "
(?PrintTrailer@Region@itk@@MB<BR>EXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@VIndent@2@@Z)<BR>ButtonDialog.obj
: error LNK2001: Nichtaufgeloestes externes Symbol "protected: virtual void
__thiscall itk::Region::PrintHeader(class std::basic_ostream<char,struct
std::char_traits<char> > &,class itk::Indent)const "
(?PrintHeader@Region@itk@@MBEX<BR>AAV?$basic_ostream@DU?$char_traits@D@std@@@std@@VIndent@2@@Z)<BR>ButtonDialog.obj
: error LNK2001: Nichtaufgeloestes externes Symbol "public: virtual void
__thiscall itk::Region::Print(class std::basic_ostream<char,struct
std::char_traits<char> > &)const "
(?Print@Region@itk@@UBEXAAV?$basic_ostream@DU?$char_trait<BR>s@D@std@@@std@@@Z)<BR>ButtonDialog.obj
: error LNK2001: Nichtaufgeloestes externes Symbol "protected: virtual void
__thiscall itk::Region::PrintSelf(class std::basic_ostream<char,struct
std::char_traits<char> > &,class itk::Indent)const "
(?PrintSelf@Region@itk@@MBEXAAV?<BR>$basic_ostream@DU?$char_traits@D@std@@@std@@VIndent@2@@Z)<BR>ButtonDialog.obj
: error LNK2001: Nichtaufgeloestes externes Symbol "protected: virtual void
__thiscall itk::DataObject::PropagateResetPipeline(void)"
(?PropagateResetPipeline@DataObject@itk@@MAEXXZ)<BR>ButtonDialog.obj : error
LNK2001: Nichtaufgeloestes externes Symbol "public: virtual void __thiscall
itk::DataObject::ResetPipeline(void)"
(?ResetPipeline@DataObject@itk@@UAEXXZ)<BR>ButtonDialog.obj : error LNK2001:
Nichtaufgeloestes externes Symbol "public: virtual void __thiscall
itk::Object::DebugOff(void)const "
(?DebugOff@Object@itk@@UBEXXZ)<BR>ButtonDialog.obj : error LNK2001:
Nichtaufgeloestes externes Symbol "public: virtual void __thiscall
itk::Object::DebugOn(void)const "
(?DebugOn@Object@itk@@UBEXXZ)<BR>ButtonDialog.obj : error LNK2001:
Nichtaufgeloestes externes Symbol "void __cdecl
itk::OutputWindowDisplayDebugText(char const *)"
(?OutputWindowDisplayDebugText@itk@@YAXPBD@Z)<BR>ButtonDialog.obj : error
LNK2001: Nichtaufgeloestes externes Symbol "void __cdecl
itk::OutputWindowDisplayErrorText(char const *)"
(?OutputWindowDisplayErrorText@itk@@YAXPBD@Z)<BR>ButtonDialog.obj : error
LNK2001: Nichtaufgeloestes externes Symbol "public: void __thiscall
itk::SimpleFastMutexLock::Unlock(void)const "
(?Unlock@SimpleFastMutexLock@itk@@QBEXXZ)<BR>ButtonDialog.obj : error LNK2001:
Nichtaufgeloestes externes Symbol "public: void __thiscall
itk::SimpleFastMutexLock::Lock(void)const "
(?Lock@SimpleFastMutexLock@itk@@QBEXXZ)<BR>ButtonDialog.obj : error LNK2001:
Nichtaufgeloestes externes Symbol "public: __thiscall
itk::SimpleFastMutexLock::~SimpleFastMutexLock(void)"
(??1SimpleFastMutexLock@itk@@QAE@XZ)</SPAN></FONT></DIV></FONT></DIV>
<BLOCKQUOTE dir=ltr
style="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px">
<DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Miller, James V (CRD)
[mailto:millerjv@crd.ge.com]<BR><B>Sent:</B> Tuesday, December 11, 2001 4:22
PM<BR><B>To:</B> 'Nils Hanßen';
insight-users@public.kitware.com<BR><B>Subject:</B> RE: [Insight-users]
Problems with itk and streams under VC++<BR><BR></DIV></FONT>
<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 align=left class=OutlookMessageHeader dir=ltr><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></BLOCKQUOTE></BODY></HTML>