Create a correct resource.rc: ld.exe: .rsrc merge failure:duplicate leaf:type:10

Started by fielder, September 01, 2024, 10:25:37

Previous topic - Next topic

fielder

From years i'm using the same reosurce.rc file to generate the ".o" file with windres to add copyright datas and icon on Windows executable...

101 ICON "BIOSdump.ico"

1 VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
FILEOS 0x40004
FILETYPE 0x1
{
BLOCK "StringFileInfo"
{
 BLOCK "040904b0"
 {
  VALUE "Comments", "created by "
  VALUE "CompanyName", "Centro Analisi"
  VALUE "FileVersion", "1.3x"
  VALUE "FileDescription", "BIOS dump "
  VALUE "InternalName", "BIOS dump "
  VALUE "LegalCopyright", "Computer Cuneo" 
  VALUE "OriginalFilename", "BIOSdump.exe"
  VALUE "ProductName", "BIOS dump"
  VALUE "ProductVersion", "1.3x"
 }
}
BLOCK "VarFileInfo"
{
  VALUE "Translation", 0x809, 1252
}
}

usign the command:

windres64 -i resource.rc -o file64.o

i receive the output of:

[100%] Linking:BIOSdump2license.exe
C:/BlitzMax/MinGW32x64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: .rsrc merge failure: duplicate leaf: type: 10 (VERSION) name: 1 lang: 409
C:/BlitzMax/MinGW32x64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: .rsrc merge failure: duplicate leaf: type: 3 (ICON) name: 1 lang: 409

BTW everything is working fine.. icon is set, and copyright informations also.

any idea on how i need to change on the resource.rc file to avoid the 2 duplications?