[Insight-users] Problem with Iterator debugging

Daanen Vincent daanen at koelis.com
Tue Oct 6 08:45:46 EDT 2009


Hi,

I compiled Itk (v3.16) with default option in debug mode.
When I try to use it in a "big" project, I the following error:

"c:\program files\microsoft visual studio 8\vc\include\deque(94) : error
C2248: 'std::deque<_Ty>::_Myoff'ÿ: impossible to access to protected membre
declared in class 'std::deque<_Ty>'." in source file which does ot included
itk headers ...

I turn off Iterator debugging (/D _HAS_ITERATOR_DEBUGGING=0  /D
_SECURE_SCL=0) and it compiles but crashes at the very beginnig of the
sotware when using another 3rd party library.

I can't figure out why I got the compilation error only when including ITK
(if I remove its usage with #ifdef/#endif) the compilation is ok and I got
no crash when running the software.

For the moment, the solution is to compile with #define __USE_ITK__  0 in
the source file where itk is used, and then set define __USE_ITK__  1 and
recompile only this file .... But I think this will not work for a long time
and I would prefer to really fix this problem instead of using such a
solution.

Soi should I recompile itk with _HAS_ITERATOR_DEBUGGING=0 & _SECURE_SCL=0 ?
If yes, could someone tell me what I should change and where..

Thanks

 Vince
 


--------------------------------------------
Vincent Daanen, PhD
D&D Manager

--------------------------------------------
KOELIS
5, avenue du Grand Sablon 38700 La Tronche
www.koelis.com  -  daanen at koelis.com
Tel .+33(0) 476637588 Fax .+33(0) 476637592
--------------------------------------------

CONFIDENTIALITY This e-mail and any attachments are confidential and may
also be privileged. If you are not the named recipient, please notify the
sender immediately and do not disclose the contents to another person, use
it for any purpose, or store or copy the information in any medium.

"Les problèmes ne peuvent être résolus par ceux dont l'horizon se limite aux
réalités quotidiennes,  mais par ceux qui rêvent de choses qui n'ont jamais
existé et qui se disent : Pourquoi Pas ?" (J-F Kennedy, 1963). 



More information about the Insight-users mailing list