fatal error CVT1100: duplicate resource. type:ICON, name:1

I cannot find why I cannot load icon.

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

Some information from resource.h:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Icons */
#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
#define IDI_ELEV    91
#define IDI_DRAWREPLACE 92
#define IDI_DRAWFILL    93
#define IDI_DRAWBRUSH   94 


common.rc:
1
2
3
4
5
6
7
8
9
10
11
12
#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 


file2.rc:
1
2
#include "resource.h"
IDI_LOGO	ICON	DISCARDABLE	"res/swgbts.ico"


file3.rc:
1
2
#include "resource.h"
IDI_LOGO	ICON	DISCARDABLE	"res/aokts.ico"


I tried to change the id of the IDI_TERRAIN and other icons, did not help.

According this:
https://msdn.microsoft.com/en-us/library/b1kw34cb%28v=vs.80%29.aspx
I tried to change the number, did not help

Any help?

Visual Studio C++ 2010
I solved the problem.

I had two rc files including icons. I have taken the smaller file's content and moved it to the second file. So I use only one rc file and now more errors like that appear :-D Great, simple, clear solution and big relief.
Topic archived. No new replies allowed.