[Insight-developers] itkFactoryTestLib.cxx & Visual Studio 6.0

Tom Vercauteren tom.vercauteren at m4x.org
Thu Apr 2 13:53:51 EDT 2009


Thanks Bill,

Even though, on that page
  http://msdn.microsoft.com/en-us/library/723te7k3.aspx
the prototype of allocate is shown as requiring 2 arguments, the
example provided on the same page only uses one.

Also, MSVC 2003 has a default argument for the second argument:
  http://msdn.microsoft.com/en-us/library/723te7k3(VS.71).aspx

Anyhow, let's see how it goes.

Tom

On Thu, Apr 2, 2009 at 19:42, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> It's not just VS6. See for example:
> http://msdn.microsoft.com/en-us/library/723te7k3.aspx
> which is for VS 2008.
>
> Your fix should be portable.
>
> Bil
>
> On Thu, Apr 2, 2009 at 10:35 AM, Tom Vercauteren
> <tom.vercauteren at m4x.org> wrote:
>> Hey Luis,
>>
>> It seems that this is a known msvc 6.0 bug. See chapter 11 of
>> http://www.acceleratedcpp.com/details/msbugs.html
>>
>> I'll try with adding a dummy second argument (null pointer). I hope it
>> won't make other platforms fail...
>> http://www.itk.org/cgi-bin/viewcvs.cgi/Testing/Code/Common/itkFactoryTestLib.cxx?root=Insight&r1=1.5&r2=1.6&sortby=date
>>
>> Tom
>>
>> On Thu, Apr 2, 2009 at 18:42, Luis Ibanez <luis.ibanez at kitware.com> wrote:
>>>
>>> Hi Tom,
>>>
>>> It seems that Visual Studio 6.0 has difficulty
>>> with the changes in itkFactoryTestLib.cxx:
>>>
>>> http://www.cdash.org/CDash/viewBuildError.php?buildid=304766
>>>
>>>
>>> Compiling...
>>> itkFactoryTestLib.cxx
>>>
>>> c:\Dashboards\My
>>> Tests\InsightContinuous\Testing\Code\Common\itkFactoryTestLib.cxx(68) :
>>> error C2660: 'allocate' : function does not take 1 parameters
>>>
>>>        c:\Dashboards\My
>>> Tests\InsightContinuous\Testing\Code\Common\itkFactoryTestLib.cxx(59) :
>>> while compiling class-template member function 'short *__thiscall
>>> TestImportImageContainer<unsigned long,short>::AllocateElements(unsigned
>>> long) const'
>>>
>>>
>>>  Any suggestions ?
>>>
>>>
>>>     Thanks
>>>
>>>
>>>         Luis
>>>
>>>
>>>
>> _______________________________________________
>> 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