[Insight-developers] Portability Issues with StatisticsRefactoring

Bill Lorensen bill.lorensen at gmail.com
Sat Apr 11 09:13:36 EDT 2009


Here are the offending lines in: (If I remove them, everything builds)
itkMeasurementvectorTraits,h
template< class T >
class MeasurementVectorTraitsTypes< std::vector< T > >
{
public:
   typedef T ValueType;
};

and here are the errors from VS7:
------ Build started: Project: ITKStatisticsNew, Configuration:
RelWithDebInfo Win32 ------

Compiling...
itkSparseFrequencyContainer2.cxx
c:\lorensen\Projects\ITKStatisticsPipelineRefactoring\Source\itkMeasurementVectorTraits.h(579)
: error C2065: 'T' : undeclared identifier
c:\lorensen\Projects\ITKStatisticsPipelineRefactoring\Source\itkMeasurementVectorTraits.h(579)
: error C2687: cannot define a nested UDT of a template class out of
line
c:\lorensen\Projects\ITKStatisticsPipelineRefactoring\Source\itkMeasurementVectorTraits.h(579)
: fatal error C1903: unable to recover from previous error(s);
stopping compilation
itkDenseFrequencyContainer2.cxx
c:\lorensen\Projects\ITKStatisticsPipelineRefactoring\Source\itkMeasurementVectorTraits.h(579)
: error C2065: 'T' : undeclared identifier
c:\lorensen\Projects\ITKStatisticsPipelineRefactoring\Source\itkMeasurementVectorTraits.h(579)
: error C2687: cannot define a nested UDT of a template class out of
line
c:\lorensen\Projects\ITKStatisticsPipelineRefactoring\Source\itkMeasurementVectorTraits.h(579)
: fatal error C1903: unable to recover from previous error(s);
stopping compilation
Generating Code...

Build log was saved at
"file://c:\lorensen\Projects\ITKStatisticsPipelineRefactoring-net\Source\ITKStatisticsNew.dir\RelWithDebInfo\BuildLog.htm"
ITKStatisticsNew - 6 error(s), 0 warning(s)


------ Build started: Project: itkStatisticsHeaderTest, Configuration:
RelWithDebInfo Win32 ------

Compiling...
itkStatisticsHeaderTest.cxx
c:\lorensen\Projects\ITKStatisticsPipelineRefactoring\Source\itkMeasurementVectorTraits.h(579)
: error C2065: 'T' : undeclared identifier
c:\lorensen\Projects\ITKStatisticsPipelineRefactoring\Source\itkMeasurementVectorTraits.h(579)
: error C2687: cannot define a nested UDT of a template class out of
line
c:\lorensen\Projects\ITKStatisticsPipelineRefactoring\Source\itkMeasurementVectorTraits.h(579)
: fatal error C1903: unable to recover from previous error(s);
stopping compilation

Build log was saved at
"file://c:\lorensen\Projects\ITKStatisticsPipelineRefactoring-net\Testing\itkStatisticsHeaderTest.dir\RelWithDebInfo\BuildLog.htm"
itkStatisticsHeaderTest - 3 error(s), 0 warning(s)


---------------------- Done ----------------------

    Build: 0 succeeded, 2 failed, 0 skipped


On Sat, Apr 11, 2009 at 8:34 AM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> Hmmm... Looks like ctest is not submitting the windows errors. I see
> this warning:
> *** WARNING non-zero return value in ctest from:
> C:\PROGRA~1\MICROS~2.NET\Common7\IDE\devenv.com
>
> Bill
>
> On Sat, Apr 11, 2009 at 1:06 AM, alex gouaillard
> <alexandre_gouaillard at hms.harvard.edu> wrote:
>> bill, i don t see the windows errors.
>> i see only one experimental from your win computer and it has a lot of fail
>> tests, but because the compilation idd not succeed.
>>
>> alex.
>>
>> On Apr 11, 2009, at 12:52 AM, Bill Lorensen wrote:
>>
>>> Guys,
>>>
>>> I just submitted two experimental builds for the new Statistics. They
>>> both have issues:
>>>
>>> 1) The Borland build has many warnings.
>>> 2) The Visual Studio 7 compiler has many errors most related to
>>> MeasureVectorTraitsTypes
>>>
>>> Bill
>>> _______________________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.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-developers
>>
>>
>


More information about the Insight-developers mailing list