<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.6000.17023" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#800000 size=2><SPAN
class=992021407-28042010>Hi Luis,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#800000 size=2><SPAN
class=992021407-28042010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#800000 size=2><SPAN
class=992021407-28042010>thanks for your answer.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#800000 size=2><SPAN
class=992021407-28042010>regarding your comments:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#800000 size=2><SPAN
class=992021407-28042010> 1) as I'm using a windows box, there is no
problem with directory name "basicfilters" instead of "BasicFilters". Moreover,
these directoires are those created by the "Install Project". May be something
due to windows OS ...</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#800000 size=2><SPAN
class=992021407-28042010> 2) yes, that's probably because my Visual Studio
speaks french :)</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#800000 size=2><SPAN
class=992021407-28042010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#800000 size=2><SPAN
class=992021407-28042010>I tried your suggestions :</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#800000 size=2><SPAN
class=992021407-28042010>a) I could compile an example using
itkExtractImageFilter in Debug mode</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#800000 size=2><SPAN
class=992021407-28042010>so I check the differences between project file and
source files. I found the well-known "new" redefinition :</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#800000 size=2><SPAN
class=992021407-28042010>#ifdef _DEBUG</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#800000 size=2><SPAN
class=992021407-28042010>#define new DEBUG_NEW</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#800000 size=2><SPAN
class=992021407-28042010>#endif</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#800000 size=2><SPAN
class=992021407-28042010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#800000 size=2><SPAN
class=992021407-28042010>I comment these lines and all is ok so it seems to be
related to the use of DEBUG_NEW ...</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#800000 size=2><SPAN
class=992021407-28042010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#800000 size=2><SPAN
class=992021407-28042010>Vince</SPAN></FONT></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #800000 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=fr dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>De :</B> Luis Ibanez
[mailto:luis.ibanez@kitware.com] <BR><B>Envoyé :</B> mercredi 28 avril
2010 05:38<BR><B>À :</B> Daanen Vincent<BR><B>Cc :</B>
insight-users@itk.org<BR><B>Objet :</B> Re: [Insight-users] Strange
compilation error when trying to use
itkExtractImageFilter<BR></FONT><BR></DIV>
<DIV></DIV><BR>Hi Daanen,<BR><BR>Two things are strange about your
report:<BR><BR>1) The ITK directory names in your email<BR> do
not have upper case letters at the beginning<BR> of the
words<BR><BR> for example, you have
"basicfilters" when you should<BR> have
"BasicFilters"<BR><BR>2) There are non-ascii characters in your error
message<BR> (is this due to the French version of the
compiler ?)<BR><BR><BR>Please do the following:<BR><BR>a) reconfigure ITK with
CMake and turn ON <BR> the options
<BR><BR>
BUILD_EXAMPLES<BR>
BUILD_TESTING<BR><BR>b) then recompile ITK itself<BR><BR><BR>and let us know
if you get compilation errors while <BR>doing this.<BR><BR>Also, please let us
know how you obtained<BR>the source code of ITK.<BR><BR><BR>
Thanks<BR><BR><BR>
Luis<BR><BR><BR>----------------------------------------------------------------<BR>
<DIV class=gmail_quote>On Tue, Apr 27, 2010 at 6:40 AM, Daanen Vincent <SPAN
dir=ltr><<A
href="mailto:daanen@koelis.com">daanen@koelis.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Dear
All,<BR><BR>I'm integrating itk toolkit in a new project and I run into a
troubling compilation error.<BR><BR>My configuration is : windows XP SP3 box
/ using VS2005 / itk 3.16.0. I compiled and installed Debug and Release
version in 2 separate directories.<BR><BR>I want to use
itkExtractImageFilter. I copy/paste code from "Insight User Guide" and it
compiles and works well in release. As I want to use my application in Debug
mode, I tried to compile and got this error from the
compiler:<BR><BR>d:\outils\itk3.16.0\static-mfc\debug\include\insighttoolkit\basicfilters\itkExtractImageFilter.h(74)
: error C2660: 'itk::LightObject::operator new'ÿ: function does not need 3
args<BR>
d:\outils\itk3.16.0\static-mfc\debug\include\insighttoolkit\basicfilters\itkExtractImageFilter.h(74)ÿ:
lors de la compilation de la fonction membre '<Inconnu>' de la classe
<Inconnu><BR> D:\USERS\Daanen\PROJETS\ZZ -
Trials\UC-ItkTools\Test-ItkTools\Test-ItkTools.cpp(221)ÿ: voir la r‚f‚rence
… l'instanciation de la classe modŠle
'itk::ExtractImageFilter<TInputImage,TOutputImage>' en cours de
compilation<BR> with<BR>
[<BR>
TInputImage=InputImageType,<BR>
TOutputImage=OutputImageType<BR> ]<BR><BR>A
mailing-list search points me to a message of someone how tried to compile a
CD-ROM version with a CVS version but this does not help me :(<BR><BR>Any
clue to resolve this issue
?<BR><BR>Thanks<BR><BR>Vincent<BR><BR>_____________________________________<BR>Powered
by <A href="http://www.kitware.com"
target=_blank>www.kitware.com</A><BR><BR>Visit other Kitware open-source
projects at<BR><A href="http://www.kitware.com/opensource/opensource.html"
target=_blank>http://www.kitware.com/opensource/opensource.html</A><BR><BR>Kitware
offers ITK Training Courses, for more information visit:<BR><A
href="http://www.kitware.com/products/protraining.html"
target=_blank>http://www.kitware.com/products/protraining.html</A><BR><BR>Please
keep messages on-topic and check the ITK FAQ at:<BR><A
href="http://www.itk.org/Wiki/ITK_FAQ"
target=_blank>http://www.itk.org/Wiki/ITK_FAQ</A><BR><BR>Follow this link to
subscribe/unsubscribe:<BR><A
href="http://www.itk.org/mailman/listinfo/insight-users"
target=_blank>http://www.itk.org/mailman/listinfo/insight-users</A><BR></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>