[Insight-users] Strange compiler error

Daanen Vincent daanen at koelis.com
Mon Jul 26 10:28:02 EDT 2010


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\common\itkLightO
bject.h(85) : error C2059: syntax errror 'string'
e:\outils\itk3.16.0\static-mfc\debug\include\insighttoolkit\common\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\common\itkLightO
bject.h(85) : error C2802: static member 'operator new' has no formal
parameters
e:\outils\itk3.16.0\static-mfc\debug\include\insighttoolkit\common\itkLightO
bject.h(86) : error C2059: syntax errror 'string'
e:\outils\itk3.16.0\static-mfc\debug\include\insighttoolkit\common\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\common\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\common\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\common\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). 



More information about the Insight-users mailing list