fpc-crosswin32 .deb lazarus / 3-General ---------------------------------------------------------------------- tatamata · 2011-06-03 15:22 Hello. I am trying to enable cross-compiling in my Linux (puppy linux) installation. I have installed fpc and Lazarus by .deb packages. I have also installed fpc_crosswin32 .deb package. Regarding cross-compiling, before I destroy my installation, please tell me whether in this case (installation by .deb packages) the following article applies or the procedure is different: http://wiki.lazarus.freepascal.org/Cross_compiling_for_Win32_under_Lin ux In meantime, I have just performed "make clean all OS_TARGET=win32" and in Linux Lazarus binary changed the project options: TargetOS and Paths/LCL widget type. The compiling seemed to go well, until I got this error: MightyQuery.lpr(27,1) Error: Error while compiling resources The code is here: Code: [Select]program MightyQuery; {$mode objfpc}{$H+} uses   {$IFDEF UNIX}{$IFDEF UseCThreads}   cthreads,   {$ENDIF}{$ENDIF}   Interfaces, // this includes the LCL widgetset   Forms, UMainForm, DBFLaz, SDFLaz, janSQLTokenizer,   janSQL, janSQLStrings, MemDSLaz, lazdbexport, SQLDBLaz, janSQLExpression2,   unit2, unit3, unit4, zcomponent; {$IFDEF WINDOWS}{$R MightyQuery.rc}{$ENDIF} {off $R *.res} {$R *.res} begin   Application.Initialize;   Application.CreateForm(TFormMain, FormMain);   Application.CreateForm(TFormExportToCSV, FormExportToCSV);   Application.CreateForm(TFormFilters, FormFilters);   Application.CreateForm(TFormFind, FormFind);   Application.Run; end.    Thanks ---------------------------------------------------------------------- Leledumbo · 2011-06-04 03:04 Quote{$IFDEF WINDOWS}{$R MightyQuery.rc}{$ENDIF} {off $R *.res} {$R *.res}Is this a project created initially from older lazarus? If yes, then please only use {$R *.res}, delete the others. ---------------------------------------------------------------------- tatamata · 2011-06-04 18:22 Leledumbo, thanks, this solved the problem! I'm exciting to be able to cross-compile from Linux to win32. Great!