[Insight-developers] Removal of ITK_TEMPLATE_TXX causes Slicer problems

Bill Lorensen bill.lorensen at gmail.com
Tue Nov 13 14:16:01 EST 2012


That's because that rascal Hans has already removed the occurrences
and I had not updated for a few days.

So, Slicer4 is OK, but my comments still hold for other ITK apps that
can get burned by this.

Bill

On Tue, Nov 13, 2012 at 2:10 PM, Jean-Christophe Fillion-Robin
<jchris.fillionr at kitware.com> wrote:
> Hi Bill,
>
> Thanks for working on the ITKv4 / Slicer integration :)
>
> I couldn't find occurrences of "ITK_TEMPLATE_TXX" in the current Slicer4
> code base. Which files are causing trouble ?
>
> Thanks
> Jc
>
>
> On Tue, Nov 13, 2012 at 1:55 PM, Bill Lorensen <bill.lorensen at gmail.com>
> wrote:
>>
>> Hans,
>>
>> Now that ITK_TEMPLATE_TXX has been removed from ITKv4, a number of
>> Slicer files that use it do not compile or link. I think the
>> ITK_TEMPLATE_TXX is in the Slicer code because it was cut/paste from
>> other code.
>>
>> We can
>> 1) Put
>> #define ITK_TEMPLATE_TXX 0
>> back in itkMacros.h
>> We could include a warning
>> 2) Remove the ITK_TEMPLATE_TXX from the Slicer files that use it. I
>> think they will still build witk ITKv3.
>>
>> I like 1) because the error that is produced is tough to track
>> down(ends up as a linker error). Also, it will help other apps that
>> also used ITK_TEMPLATE_TXX by accident.
>>
>> Bill
>>
>> --
>> Unpaid intern in BillsBasement at noware dot com
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://kitware.com/products/protraining.php
>>
>> 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
>
>
>
>
> --
> +1 919 869 8849
>



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the Insight-developers mailing list