title: fatal error CVT1100: duplicate resource. type:ICON, name:1 (C++, Visual Studio C++ 2010)
body: <p>I tried to add custom icons (13x13 dimention) to a project.</p>
  
  <p>I cannot find why I cannot load icon.</p>
  
  <blockquote>
    <p>CVTRES : fatal error CVT1100: duplicate resource. type:ICON, name:1,
    language:0x0409 LINK : fatal error LNK1123: failure during conversion
    to COFF: file invalid or corrupt</p>
  </blockquote>
  
  <p>Some information from resource.h:</p>
  
  <pre><code>#define IDI_LOGO   16   //0x10 - no problem here
  ...
  /* Bitmaps */
  #define IDB_LOGO            200
  #define IDB_GOOD            201
  #define IDB_EVIL            202
  
  /* Icons */
  #define IDI_TERRAIN 90 // problem starts here
  #define IDI_ELEV    91
  #define IDI_DRAWREPLACE 92
  #define IDI_DRAWFILL    93
  #define IDI_DRAWBRUSH   94
  </code></pre>
  
  <p>common.rc:</p>
  
  <pre><code>#include "resource.h"
  /* Bitmaps */ // no problem
  #define IDB_LOGO            200
  #define IDB_GOOD            201
  #define IDB_EVIL            202
  
  /* Icons */ // problem:
  #define IDI_TERRAIN 90
  #define IDI_ELEV    91
  #define IDI_DRAWREPLACE 92
  #define IDI_DRAWFILL    93
  #define IDI_DRAWBRUSH   94
  </code></pre>
  
  <p>file2.rc:</p>
  
  <pre><code>#include "resource.h"
  IDI_LOGO    ICON    DISCARDABLE "res/swgbts.ico"
  
  
  
  
  
  
  #include "resource.h"
  IDI_LOGO    ICON    DISCARDABLE "res/aokts.ico"
  </code></pre>
  
  <p>I tried to change the id of the IDI_TERRAIN and other icons, did not help.</p>
  
  <p>According this:
  <a href="https://msdn.microsoft.com/en-us/library/b1kw34cb%28v=vs.80%29.aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/b1kw34cb%28v=vs.80%29.aspx</a>
  I tried to change the number, did not help</p>
  
  <p>Note that if I comment out the problematic lines, IDI_LOGO is loaded.
  Any help?</p>
  
  <p>The error is in resource.h
  Visual Studio C++ 2010, Windows XP</p>