[Insight-users] Strange compiler error

Daanen Vincent daanen at koelis.com
Tue Jul 27 05:03:38 EDT 2010


Dear all, 

I confirm the problem was due to the new redefinition. I had to reorganize
the some #include to solve this compiler error which seems to be due to the
use of the DcmTk library.

V

> -----Message d'origine-----
> De : insight-users-bounces at itk.org 
> [mailto:insight-users-bounces at itk.org] De la part de Daanen Vincent
> Envoyé : lundi 26 juillet 2010 16:28
> À : 'Insight Users Mailing List'
> Objet : [Insight-users] Strange compiler error
> 
> Dear itk-user,
> 
> I spent the 2 last weeks to prepare itk integration in of one our
> application. 
> I develop new internal components based on itk and tested 
> then succesfully.
> 
> Now, I'm ready to integrate pmy work and the compilation 
> (msvc 2005 standard
> edition on  a windows XP SP3 box) fails with these compiler 
> messages: (I
> translate because they are in french)
> e:\outils\itk3.16.0\static-mfc\debug\include\insighttoolkit\co
> mmon\itkLightO
> bject.h(85) : error C2059: syntax errror 'string'
> e:\outils\itk3.16.0\static-mfc\debug\include\insighttoolkit\co
> mmon\itkLightO
> bject.h(85) : error C2091: A function cannot return a 
> function. Return a
> pointer to a function instead.
> e:\outils\itk3.16.0\static-mfc\debug\include\insighttoolkit\co
> mmon\itkLightO
> bject.h(85) : error C2802: static member 'operator new' has no formal
> parameters
> e:\outils\itk3.16.0\static-mfc\debug\include\insighttoolkit\co
> mmon\itkLightO
> bject.h(86) : error C2059: syntax errror 'string'
> e:\outils\itk3.16.0\static-mfc\debug\include\insighttoolkit\co
> mmon\itkLightO
> bject.h(86) : error C2090: A function cannot return an array. Return a
> pointer to an array instead.
> e:\outils\itk3.16.0\static-mfc\debug\include\insighttoolkit\co
> mmon\itkFastMu
> texLock.h(61) : error C2660: 'itk::LightObject::operator 
> new'ÿ: The function
> is called with an incorrect number of parameters.(function 
> does not need 3
> parameters)
> e:\outils\itk3.16.0\static-mfc\debug\include\insighttoolkit\co
> mmon\itkMutexL
> ock.h(126) : error C2660: error C2660: 
> 'itk::LightObject::operator new'ÿ:
> The function is called with an incorrect number of 
> parameters.(function does
> not need 3 parameters)
> e:\outils\itk3.16.0\static-mfc\debug\include\insighttoolkit\co
> mmon\itkMultiT
> hreader.h(147) : error C2660:error C2660: 
> 'itk::LightObject::operator new'ÿ:
> The function is called with an incorrect number of 
> parameters.(function does
> not need 3 parameters)
> 
> I thought it had something to see with the following lines 
> which appear in
> all my .cpp files
> #ifdef _DEBUG
> #define new DEBUG_NEW
> #undef THIS_FILE
> static char THIS_FILE[] = __FILE__;
> #endif
> 
> So I comment them everywhere but it does not change anything :(
> 
> Does someone know what to do or what's the way to fix this ?
> 
> Thanks
> 
> Vincent
> 
> --------------------------------------------
> 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). 
> 
> _____________________________________
> 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



More information about the Insight-users mailing list