I've seen some similar questions but can't apply the answers to this simple problem. I'm running Version: 2.2.2, FPC Version 3.2.2, Revision: lazarus_2_2_2, i386-win32-win32/win64. I created a new application and add one line, {$R 'CheckBox1.rc'} after {$mode objfpc}{$H+}. Code is below. CheckBox.rc is in the same folder as the project and contains the one line:
CHKBOX BITMAP TICKCHK1.BMP
TICKCHK1.BMP is also in the same folder.
When I compile with -vd I get the following messages:
Compile Project, Target: project1.exe: Exit code 1, Errors: 1, Warnings: 2
Warning: windres [option(s)] [input-file] [output-file]
Warning: windres: supported targets: pe-i386 pei-i386 elf32-i386 elf32-iamcu elf32-little elf32-big pe-x86-64 pei-x86-64 pe-bigobj-x86-64 elf64-x86-64 elf64-l1om elf64-k1om elf64-little elf64-big plugin srec symbolsrec verilog tekhex binary ihex
unit1.pas(28,0) Error: Error while compiling resources -> Compile with -vd for more details. Check for duplicates.
I've had another programmer follow the exact same steps and they had no issue. How can I troubleshoot/fix this problem?
unit Unit1;
{$mode objfpc}{$H+}
{$R 'CheckBox1.rc'}// this is how the TickChk.bmp file gets included
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs;
type
TForm1 = class(TForm)
private
public
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
end.