[Insight-users] ITK vs VC++ Conflict in stream files?

martin.garcia@epfl.ch martin . garcia at epfl . ch
Tue, 20 Aug 2002 08:13:19 +0200


Hi everybody,

I've finally managed to compile ITK, but I've met a problem when I tried to add 
itk functionalities to my project.

Adding #include "itkImage.h"

causes the following comipaltion erros (I'm working on VC++ & Windows 2000 
Professional)


Compiling...
OsirisActiveXView.cpp
c:\program files\microsoft visual studio\vc98\include\strstream(51) : error 
C2039: 'seekdir' : is not a member of 'ios'
        c:\program files\microsoft visual studio\vc98\include\ios.h(106) : see 
declaration of 'ios'
c:\program files\microsoft visual studio\vc98\include\strstream(51) : error 
C2061: syntax error : identifier 'seekdir'
c:\program files\microsoft visual studio\vc98\include\strstream(54) : error 
C2039: 'openmode' : is not a member of 'ios'
        c:\program files\microsoft visual studio\vc98\include\ios.h(106) : see 
declaration of 'ios'
c:\program files\microsoft visual studio\vc98\include\strstream(54) : error 
C2061: syntax error : identifier 'openmode'
c:\program files\microsoft visual studio\vc98\include\strstream(91) : error 
C2629: unexpected 'class std::ostrstream ('
c:\program files\microsoft visual studio\vc98\include\strstream(91) : error 
C2238: unexpected token(s) preceding ';'
c:\program files\microsoft visual studio\vc98\include\strstream(109) : error 
C2629: unexpected 'class std::strstream ('
c:\program files\microsoft visual studio\vc98\include\strstream(109) : error 
C2238: unexpected token(s) preceding ';'
d:\insightbeta2\code\common\itkvector.h(21) : fatal error C1083: Cannot open 
include file: 'vnl/vnl_vector_ref.h': No such file or directory
Error executing cl.exe.

OsirisLight.exe - 9 error(s), 0 warning(s)

Can anybody help me with this problem?


Thanks



-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/