Reusing/cross-compiling 32 bit resources lazarus / 34-Windows ---------------------------------------------------------------------- TyneBridges · 2020-06-14 13:15 I'm trying to update and compile a project that I was developing on Windows 7 (32 bit, I think) some years ago. This is being developed on, and is only intended to run on, Windows 10 64 bit. Code: Text  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i Compile Project, Target: lclient.exe: Exit code 1, Errors: 1, Warnings: 2Warning: windres [option(s)] [input-file] [output-file]Warning: windres: supported targets: pe-i386 pei-i386 elf32-i386 elf32-little elf32-big srec symbolsrec verilog tekhex binary ihexlclient.lpr(26,1) Error: Error while compiling resources -> Compile with -vd for more details. Check for duplicates. I've looked in this forum and elsewhere for clues as to how to fix this but can't see any advice that I'm able to understand or follow. Looking back to advice I got here years ago (which helped me fix the problem on Windows 7) I see a reference to GoRC.exe, which no longer seems to exist. My resource file icons.rc lists the following, which are all present. Code: Text  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i i1 ICON "i1.ico"i2 ICON "i2.ico" i3 ICON "i3.ico"i4 ICON "i4.ico"i5 ICON "i5.ico" I've updated a console application from the same date and this will compile without errors. Is the error to do with cross-compilation of resources? Any advice on how to fix it would be appreciated. Version 2.0.8 Date: 2020-04-11 FPC Version 3.0.4 SVN Revision 62944 x86_64-win64-win32/win64 Edit: I've just spotted the info online about LRS Explorer. I've installed that and added an lrs file with my icons in it, but still get exactly the same errors when I try compiling. Thanks. ---------------------------------------------------------------------- PascalDragon · 2020-06-14 14:42 Quote from: TyneBridges on June 14, 2020, 03:15:26 pmI've looked in this forum and elsewhere for clues as to how to fix this but can't see any advice that I'm able to understand or follow. Looking back to advice I got here years ago (which helped me fix the problem on Windows 7) I see a reference to GoRC.exe, which no longer seems to exist.[/url] You can find GoRC here. I really wonder why Lazarus distributes Windres for Win64 instead of GoRC... Quote from: TyneBridges on June 14, 2020, 03:15:26 pmEdit: I've just spotted the info online about LRS Explorer. I've installed that and added an lrs file with my icons in it, but still get exactly the same errors when I try compiling. LRS resources are the old style resources, not the Windows PE/COFF based ones. ---------------------------------------------------------------------- TyneBridges · 2020-06-14 15:17 Quote from: PascalDragon on June 14, 2020, 04:42:25 pmLRS resources are the old style resources, not the Windows PE/COFF based ones. Thanks for your response but I don't understand what it means. How can I add my icon resources so that Lazarus will accept them? ---------------------------------------------------------------------- lucamar · 2020-06-14 15:40 Quote from: TyneBridges on June 14, 2020, 05:17:06 pmHow can I add my icon resources so that Lazarus will accept them? The simplest way is, probably, by going to "Project->Project Options", selecting "Resources" and adding them there. ---------------------------------------------------------------------- TyneBridges · 2020-06-14 17:53 Quote from: lucamar on June 14, 2020, 05:40:06 pm The simplest way is, probably, by going to "Project->Project Options", selecting "Resources" and adding them there. Thanks. Adding them there seemed to work once I'd removed them from the compiler directives in the code - at least the application will now compile. The icon does not show in the system tray as it did in Windows 7 so there may be other revisions needed to my code.