title: Unit GIFImg was compiled with a different version of CCR.Exif.Consts.SOutOfResources
body: <p>I was trying to use the <a href="http://code.google.com/p/ccr-exif/downloads/list" rel="nofollow">EXIF</a> library in one of my packages. It worked before but now I get strange messages: </p>
  
  <blockquote>
    <p>[DCC Fatal Error] F2051 Unit GIFImg was compiled with a different
    version of CCR.Exif.Consts.SOutOfResources</p>
  </blockquote>
  
  <p>I don't really get it... Why Delphi tries to recompile one of its files? How do I fix this?</p>
  
  <p>GifImg is located here: </p>
  
  <blockquote>
    <p>c:\Program Files\Embarcadero\RAD Studio\8.0\source\vcl\GIFImg.pas</p>
  </blockquote>
  
  <p>Update:</p>
  
  <p>I looked at the date of that file (1 PAS and 2 DCUs) and it has the same date as any other file in RAD Studio\8.0\source\vcl folder. So, the file was not accidentally modified.</p>
  
  <p><strong>Update2:</strong></p>
  
  <p>This is my uses clause:</p>
  
  <pre><code>USES Windows, SysUtils, AnsiStrings, Graphics, Dialogs, Classes, jPeg,
       pngImage,                     
       janFX,   //CCR.Exif,
       {$IFDEF VER150}
          GIFImageFinn     {Delphi 7}
       {$ELSE}  
          GIFImg           {Delphi 2010/XE}
       {$ENDIF}
       ; 
  </code></pre>
  
  <p>If I comment the CCR.EXIF unit, it starts to compile my package. So, adding EXIF to my package breaks something.</p>