[Insight-users] vnl_numeric_traits.h error

Luis Ibanez luis.ibanez at kitware.com
Fri Jun 20 17:31:25 EDT 2008


Hi abatzis,

It may seem that this error is due to the lack of definition of
the macro

                 VCL_DEFINE_SPECIALIZATION

This macro should be defined as part of the CMake configuration
process in ITK.

One possible way to get around this problem is for you to build
*and install* ITK. Then to build your application against the
installed version of ITK.

Please give it a try and let us know if you still find any
problems,


   Thanks


      Luis


--
PS.
An even better method is to configure you application with CMake...  :-)
It will save you the pain of dealing with this configuration issues,
and it will make a lot easier for other developers to build your
project in their own machines later on.


---------------------------------
abatzis at ceid.upatras.gr wrote:
> Hi Luis,
> 
> sorry for the misleading info. The file is vnl_numeric_traits.h and the
> error list is:
> 
> error C2906:'vnl_numeric_traits<bool>':explicit specialization requires
> 'template <>' line 72  File:vnl_numeric_traits.h
> fatal error C1903: unable to recover from previous error(s);stopping
> compilation line 86    File:vnl_numeric_traits.h
> 
> 
> 
> 
> 
> 
>>Hi Jim,
>>
>>1) What version of ITK are you using ?
>>
>>2) Are you using CMake for configuring your project ?
>>
>>3) Please post to the list the *exact* error message that you get
>>    (including lines numbers).  No editing please.
>>
>>
>>   Thanks
>>
>>
>>      Luis
>>
>>
>>-------------------------------
>>abatzis at ceid.upatras.gr wrote:
>>
>>>
>>>  Hello everyone,
>>>
>>>im building a gui with microsoft visual studio 2005 pro and when
>>>importing
>>>the itk - vtk libraries into the gui a get an error C2906
>>>:vnl_numeric_traits<bool>
>>>: explicit specialization requires template<>which at first glance looks
>>>like an old syntax problem as says the reference for that
>>>error.Unfortunately its not the case and many problems occur. Has anyone
>>>faced sth like this before?]
>>>
>>>Best regards
>>>
>>>Jim
>>>
>>>
>>>_______________________________________________
>>>Insight-users mailing list
>>>Insight-users at itk.org
>>>http://www.itk.org/mailman/listinfo/insight-users
>>>
>>
>>
> 
> 


More information about the Insight-users mailing list