Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.

Public Report
Report From: Kylix/Compiler/Pascal/Linker    [ Add a report in this area ]  
Report #:  3169   Status: Open
Build fails with [Error] duplicate resource id: type 1 id 1
Project:  Kylix Build #:  4.186
Version:    3.0 Submitted By:   John Moshakis
Report Type:  Basic functionality failure Date Reported:  12/18/2002 6:41:33 PM
Severity:    Infrequently encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    Kylix Pascal IDE Internal Tracking #:   155976
Resolution: None  Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: (3 Total Ratings)
3.67 out of 5
Total Votes: 7
Description
Enclosed is a project that builds on Windows but will not on Linux. The reported error is "[Error] Duplicate resource id: type 1 id 1

In the help it says that (In Delphi duplicate resources are ignored with a warning, In Kylix, duplicates cause an error)

I do not believe that the resources are duplicates and a build on Windows seems to back this up because no warnings are given.

I believe the problem is that I have a cursor in each of the 2 resource files that are referenced by the project

cursor1.res and cursor2.res


2cursor.res is a single resource file with the 2 cursors. If I remove references to  cursor1.res and cursor2.res and replace it with 2cursor.res it will build.
Steps to Reproduce:
Build the project enclosed as an attachment,

[Error] Duplicate resource id: type 1 id 1 is reported
Workarounds
Locate cursors in resource files and move all into a single resource file
Attachment
cursortestcase.zip
Comments

None

Server Response from: ETNACODE01