[Insight-developers] source code change impacting Intel compiler

Kent Williams kent at psychiatry.uiowa.edu
Mon Apr 10 10:49:23 EDT 2006


The obvious thing to try first off:

    static int vrSize = sizeof(std::string);

because in context, that's what's needed.  No need to create an instance 
to find out its size.



Simon Warfield wrote:

>
> A recent change has been incompatible with the Intel compiler but 
> works with GCC.
> The symptom is the following error message:
> http://www.itk.org/Testing/Sites/smyslov.bwh.harvard.edu/Linux-x86_64-release-icc-9.0/20060410-0100-Nightly/BuildError.html 
>
>
>>
>> File: *Utilities/gdcm/src/gdcmVR.cxx* Line: *118*CVS 
>> <http://www.itk.org/cgi-bin/viewcvs.cgi/Utilities/gdcm/src/gdcmVR.cxx?cvsroot=Insight&annotate=HEAD#118> 
>>
>> Building CXX object Utilities/gdcm/src/CMakeFiles/itkgdcm.dir/gdcmVR.o
>> */.../Insight/Utilities/gdcm/src/gdcmVR.cxx(118): internal error: 
>> assertion failed: pop_object_lifetime: useful lifetime is unbound 
>> (shared/edgcpfe/il.c, line 14286)
>> *
>>     static const int vrSize = sizeof(std::string("AE"));
>>                               ^
>>
>> compilation aborted for /.../Insight/Utilities/gdcm/src/gdcmVR.cxx 
>> (code 4)
>> Linking CXX static library ../../../bin/libitkgdcm.a
>
>
> Apparently the compiler is objecting to reporting the size of the 
> temporary object, perhaps because it can't work out when the objects 
> destructor will be called.
>
> I wonder if an alternative means of setting vrSize would work.
>
> -- 
> Simon
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers
>



More information about the Insight-developers mailing list