[Insight-users] Strange compilation error when trying to use itkExtractImageFilter

Daanen Vincent daanen at koelis.com
Wed Apr 28 03:20:50 EDT 2010


Hi Luis,
 
thanks for your answer.
regarding your comments:
 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 ...
 2) yes, that's probably because my Visual Studio speaks french :)
 
I tried your suggestions :
a) I could compile an example using itkExtractImageFilter in Debug mode
so I check the differences between project file and source files. I found the well-known "new" redefinition :
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
 
I comment these lines and all is ok so it seems to be related to the use of DEBUG_NEW ...
 
Vince


  _____  

De : Luis Ibanez [mailto:luis.ibanez at kitware.com] 
Envoyé : mercredi 28 avril 2010 05:38
À : Daanen Vincent
Cc : insight-users at itk.org
Objet : Re: [Insight-users] Strange compilation error when trying to use itkExtractImageFilter



Hi Daanen,

Two things are strange about your report:

1) The ITK directory names in your email
    do not have upper case letters at the beginning
    of the words

     for example, you have  "basicfilters" when you should
     have "BasicFilters"

2) There are non-ascii characters in your error message
    (is this due to the French version of the compiler ?)


Please do the following:

a) reconfigure ITK with CMake and turn ON 
    the options 

                BUILD_EXAMPLES
                BUILD_TESTING

b) then recompile ITK itself


and let us know if you get compilation errors while 
doing this.

Also, please let us know how you obtained
the source code of ITK.


    Thanks


         Luis


----------------------------------------------------------------

On Tue, Apr 27, 2010 at 6:40 AM, Daanen Vincent <daanen at koelis.com> wrote:


Dear All,

I'm integrating itk toolkit in a new project and I run into a troubling compilation error.

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.

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:

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
       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>
       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
       with
       [
           TInputImage=InputImageType,
           TOutputImage=OutputImageType
       ]

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 :(

Any clue to resolve this issue ?

Thanks

Vincent

_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.html

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100428/27916c75/attachment-0001.htm>


More information about the Insight-users mailing list