Discussion:
How to get rid of remobjects pascal script duplicate resource warnings
(too old to reply)
Skybuck Flying
2012-10-22 01:13:03 UTC
Permalink
Hello,

One of my application uses remobjects's pascal script, and during
compile/build it generates these warnings, how to get rid of these warnings
?

[DCC Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID
TPSDLLPLUGIN; File
K:\Delphi\Libraries\remobjects-pascalscript-52291ff\Source\PascalScript_Core_Glyphs.res
resource kept; file
K:\Delphi\Libraries\remobjects-pascalscript-52291ff\Source\PascalScript_Core_Glyphs.res
resource discarded.
[DCC Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID
TPSIMPORT_CLASSES; File
K:\Delphi\Libraries\remobjects-pascalscript-52291ff\Source\PascalScript_Core_Glyphs.res
resource kept; file
K:\Delphi\Libraries\remobjects-pascalscript-52291ff\Source\PascalScript_Core_Glyphs.res
resource discarded.
[DCC Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID
TPSIMPORT_COMOBJ; File
K:\Delphi\Libraries\remobjects-pascalscript-52291ff\Source\PascalScript_Core_Glyphs.res
resource kept; file
K:\Delphi\Libraries\remobjects-pascalscript-52291ff\Source\PascalScript_Core_Glyphs.res
resource discarded.
[DCC Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID
TPSIMPORT_CONTROLS; File
K:\Delphi\Libraries\remobjects-pascalscript-52291ff\Source\PascalScript_Core_Glyphs.res
resource kept; file
K:\Delphi\Libraries\remobjects-pascalscript-52291ff\Source\PascalScript_Core_Glyphs.res
resource discarded.
[DCC Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID
TPSIMPORT_DATEUTILS; File
K:\Delphi\Libraries\remobjects-pascalscript-52291ff\Source\PascalScript_Core_Glyphs.res
resource kept; file
K:\Delphi\Libraries\remobjects-pascalscript-52291ff\Source\PascalScript_Core_Glyphs.res
resource discarded.
[DCC Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID
TPSIMPORT_DB; File
K:\Delphi\Libraries\remobjects-pascalscript-52291ff\Source\PascalScript_Core_Glyphs.res
resource kept; file
K:\Delphi\Libraries\remobjects-pascalscript-52291ff\Source\PascalScript_Core_Glyphs.res
resource discarded.
[DCC Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID
TPSIMPORT_FORMS; File
K:\Delphi\Libraries\remobjects-pascalscript-52291ff\Source\PascalScript_Core_Glyphs.res
resource kept; file
K:\Delphi\Libraries\remobjects-pascalscript-52291ff\Source\PascalScript_Core_Glyphs.res
resource discarded.
[DCC Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID
TPSIMPORT_STDCTRLS; File
K:\Delphi\Libraries\remobjects-pascalscript-52291ff\Source\PascalScript_Core_Glyphs.res
resource kept; file
K:\Delphi\Libraries\remobjects-pascalscript-52291ff\Source\PascalScript_Core_Glyphs.res
resource discarded.
[DCC Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID
TPSSCRIPT; File
K:\Delphi\Libraries\remobjects-pascalscript-52291ff\Source\PascalScript_Core_Glyphs.res
resource kept; file
K:\Delphi\Libraries\remobjects-pascalscript-52291ff\Source\PascalScript_Core_Glyphs.res
resource discarded.
[DCC Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID
TPSSCRIPTDEBUGGER; File
K:\Delphi\Libraries\remobjects-pascalscript-52291ff\Source\PascalScript_Core_Glyphs.res
resource kept; file
K:\Delphi\Libraries\remobjects-pascalscript-52291ff\Source\PascalScript_Core_Glyphs.res
resource discarded.


Bye,
Skybuck.
Skybuck Flying
2012-10-22 01:17:51 UTC
Permalink
Never mind, I figured it out.

I was a bit lazy and added all remobjects pascal script source files to the
project and this creates the duplicate resource warnings.

It turns out only these two files need to be added to make the runtime work:

uPSRuntime
uPSUtils

By only including these two, or whatever is needed the resource warnings go
away.

Bye,
Skybuck.

Loading...