[Insight-developers] errors including ITK in an FLTK based project

Bill Hoffman bill.hoffman@kitware.com
Tue, 29 May 2001 13:27:10 -0400


--=====================_1307567743==_.ALT
Content-Type: text/plain; charset="us-ascii"


We have seen this before.
The last time it was due to a : 
using namespace std;


This should not be done in any itk code.

-Bill



At 12:52 PM 5/29/2001 -0400, C. Aaron Cois wrote:
>I was wondering if any of the developers that use FLTK regularly might be abl eto give me some wisdom on a few errors i have been getting just trying to include an itk class in a project.  This is a pre-existing project, and runs without itk...as soon as i add 
> 
>#include "itkMesh.h"
> 
>I get the following errors:
> 
>f:\projects\insight\insight\code\numerics\vxl\vcl\win32\vcl_complex.h(27) : error C2667: 'norm' : none of 2 overload have a best conversion
>        f:\projects\insight\insight\code\numerics\vxl\vnl\vnl_complex.h(35) : see reference to function template instantiation 'float __cdecl abs(const class std::complex<float> &)' being compiled
>f:\projects\insight\insight\code\numerics\vxl\vcl\win32\vcl_complex.h(27) : error C2668: 'norm' : ambiguous call to overloaded function
>        f:\projects\insight\insight\code\numerics\vxl\vnl\vnl_complex.h(35) : see reference to function template instantiation 'float __cdecl abs(const class std::complex<float> &)' being compiled
>f:\projects\insight\insight\code\numerics\vxl\vcl\win32\vcl_complex.h(27) : error C2667: 'norm' : none of 2 overload have a best conversion
>        f:\projects\insight\insight\code\numerics\vxl\vnl\vnl_complex.h(36) : see reference to function template instantiation 'double __cdecl abs(const class std::complex<double> &)' being compiled
>f:\projects\insight\insight\code\numerics\vxl\vcl\win32\vcl_complex.h(27) : error C2668: 'norm' : ambiguous call to overloaded function
>        f:\projects\insight\insight\code\numerics\vxl\vnl\vnl_complex.h(36) : see reference to function template instantiation 'double __cdecl abs(const class std::complex<double> &)' being compiled
>f:\projects\insight\insight\code\numerics\vxl\vcl\win32\vcl_complex.h(27) : error C2667: 'norm' : none of 2 overload have a best conversion
>        f:\projects\insight\insight\code\numerics\vxl\vnl\vnl_complex.h(37) : see reference to function template instantiation 'long double __cdecl abs(const class std::complex<long double> &)' being compiled
>f:\projects\insight\insight\code\numerics\vxl\vcl\win32\vcl_complex.h(27) : error C2668: 'norm' : ambiguous call to overloaded function
>        f:\projects\insight\insight\code\numerics\vxl\vnl\vnl_complex.h(37) : see reference to function template instantiation 'long double __cdecl abs(const class std::complex<long double> &)' being compiled
> 
> 
>    These are vnl related errors, but i can't figure out exactly what is causing them.  There is no norm function defined in our previous code that could be conflicting, so could it be something betwee4n FLTK and ITK/VNL?
> 
> 
>                                                                                                                                                        Aaron
>                                                                                                                                        University of Pittsburgh

--=====================_1307567743==_.ALT
Content-Type: text/html; charset="us-ascii"


We have seen this before.
The last time it was due to a :
using namespace std;


This should not be done in any itk code.

-Bill



At 12:52 PM 5/29/2001 -0400, C. Aaron Cois wrote:
I was wondering if any of the developers that use FLTK regularly might be abl eto give me some wisdom on a few errors i have been getting just trying to include an itk class in a project.  This is a pre-existing project, and runs without itk...as soon as i add
 
#include "itkMesh.h"
 
I get the following errors:
 
f:\projects\insight\insight\code\numerics\vxl\vcl\win32\vcl_complex.h(27) : error C2667: 'norm' : none of 2 overload have a best conversion
        f:\projects\insight\insight\code\numerics\vxl\vnl\vnl_complex.h(35) : see reference to function template instantiation 'float __cdecl abs(const class std::complex<float> &)' being compiled
f:\projects\insight\insight\code\numerics\vxl\vcl\win32\vcl_complex.h(27) : error C2668: 'norm' : ambiguous call to overloaded function
        f:\projects\insight\insight\code\numerics\vxl\vnl\vnl_complex.h(35) : see reference to function template instantiation 'float __cdecl abs(const class std::complex<float> &)' being compiled
f:\projects\insight\insight\code\numerics\vxl\vcl\win32\vcl_complex.h(27) : error C2667: 'norm' : none of 2 overload have a best conversion
        f:\projects\insight\insight\code\numerics\vxl\vnl\vnl_complex.h(36) : see reference to function template instantiation 'double __cdecl abs(const class std::complex<double> &)' being compiled
f:\projects\insight\insight\code\numerics\vxl\vcl\win32\vcl_complex.h(27) : error C2668: 'norm' : ambiguous call to overloaded function
        f:\projects\insight\insight\code\numerics\vxl\vnl\vnl_complex.h(36) : see reference to function template instantiation 'double __cdecl abs(const class std::complex<double> &)' being compiled
f:\projects\insight\insight\code\numerics\vxl\vcl\win32\vcl_complex.h(27) : error C2667: 'norm' : none of 2 overload have a best conversion
        f:\projects\insight\insight\code\numerics\vxl\vnl\vnl_complex.h(37) : see reference to function template instantiation 'long double __cdecl abs(const class std::complex<long double> &)' being compiled
f:\projects\insight\insight\code\numerics\vxl\vcl\win32\vcl_complex.h(27) : error C2668: 'norm' : ambiguous call to overloaded function
        f:\projects\insight\insight\code\numerics\vxl\vnl\vnl_complex.h(37) : see reference to function template instantiation 'long double __cdecl abs(const class std::complex<long double> &)' being compiled

 
 
    These are vnl related errors, but i can't figure out exactly what is causing them.  There is no norm function defined in our previous code that could be conflicting, so could it be something betwee4n FLTK and ITK/VNL?
 
 
                                                                                                                                                        Aaron
                                                                                                                                        University of Pittsburgh
--=====================_1307567743==_.ALT--