i need help :( SOLVED lazarus / 8-Other ---------------------------------------------------------------------- cpalx · 2009-06-25 16:23 Hello, i use windows XPsp3, Lazarus 0.97   (2009-6-16) all was ok, all my projects compile perfectly but one, and just one: I was coping some code (just code) from one unit to another (differents projects) and sudendly i try to compile my project and it could not, the output message is : ========================================== extension if not specified.  A single file name is an input file. datamodulo.pas(207,5) Note: Local variable "bRpta" is assigned but never used datamodulo.pas(429,5) Note: Local variable "sSQL" not used datamodulo.pas(16,55) Hint: Unit "ZSqlProcessor" not used in DataModulo clientes.pas(27,33) Hint: Parameter "Column" not used productos.pas(36,33) Hint: Parameter "Column" not used preactivacion.pas(78,7) Hint: Parameter "Shift" not used preactivacion.pas(79,57) Hint: Parameter "Key" not used preactivacion.pas(449,5) Note: Local variable "sTemp" not used activaciongeneral.pas(9,40) Hint: Unit "DBGrids" not used in activaciongeneral reportes.pas(111,7) Note: Local variable "j" not used reportes.pas(151,5) Note: Local variable "iCant" is assigned but never used anular.pas(33,33) Hint: Parameter "Column" not used principal.pas(46,33) Hint: Parameter "Column" not used windres [option(s)] [input-file] [output-file] windres: supported targets: pe-i386 pei-i386 elf32-i386 elf32-little elf32-big srec symbolsrec tekhex binary ihex Hint: Start of reading config file C:\lazarus_097_2009_05_20\fpc\2.2.5\bin\i386-win32\fpc.cfg Hint: End of reading config file C:\lazarus_097_2009_05_20\fpc\2.2.5\bin\i386-win32\fpc.cfg Free Pascal Compiler version 2.2.5 [2009/05/20] for i386 Copyright (c) 1993-2008 by Florian Klaempfl Target OS: Win32 for i386 Compiling STactivacion.lpr Compiling preactivacion.pas Compiling clientes.pas Compiling cliente_nuevo.pas Compiling datamodulo.pas datamodulo.pas(34,32) Hint: Parameter "Sender" not used datamodulo.pas(37,30) Hint: Parameter "Sender" not used datamodulo.pas(207,5) Note: Local variable "bRpta" is assigned but never used datamodulo.pas(53,30) Hint: Parameter "Sender" not used datamodulo.pas(39,39) Hint: Parameter "Sender" not used datamodulo.pas(40,49) Hint: Parameter "Sender" not used datamodulo.pas(41,39) Hint: Parameter "Sender" not used datamodulo.pas(429,5) Note: Local variable "sSQL" not used datamodulo.pas(16,55) Hint: Unit "ZSqlProcessor" not used in DataModulo cliente_nuevo.pas(66,36) Hint: Parameter "Sender" not used cliente_nuevo.pas(69,32) Hint: Parameter "Sender" not used cliente_nuevo.pas(70,30) Hint: Parameter "Sender" not used clientes.pas(31,31) Hint: Parameter "Sender" not used clientes.pas(32,39) Hint: Parameter "Sender" not used clientes.pas(33,30) Hint: Parameter "Sender" not used clientes.pas(34,30) Hint: Parameter "Sender" not used clientes.pas(35,36) Hint: Parameter "Sender" not used clientes.pas(27,33) Hint: Parameter "Column" not used clientes.pas(28,28) Hint: Parameter "Sender" not used clientes.pas(29,26) Hint: Parameter "Sender" not used clientes.pas(30,24) Hint: Parameter "Sender" not used Compiling productos.pas productos.pas(39,31) Hint: Parameter "Sender" not used productos.pas(41,32) Hint: Parameter "Sender" not used productos.pas(42,30) Hint: Parameter "Sender" not used productos.pas(43,36) Hint: Parameter "Sender" not used productos.pas(36,33) Hint: Parameter "Column" not used productos.pas(32,30) Hint: Parameter "Sender" not used productos.pas(34,31) Hint: Parameter "Sender" not used productos.pas(37,28) Hint: Parameter "Sender" not used preactivacion.pas(90,30) Hint: Parameter "Sender" not used preactivacion.pas(76,32) Hint: Parameter "Sender" not used preactivacion.pas(78,7) Hint: Parameter "Shift" not used preactivacion.pas(79,36) Hint: Parameter "Sender" not used preactivacion.pas(79,57) Hint: Parameter "Key" not used preactivacion.pas(80,32) Hint: Parameter "Sender" not used preactivacion.pas(81,31) Hint: Parameter "Sender" not used preactivacion.pas(82,35) Hint: Parameter "Sender" not used preactivacion.pas(83,34) Hint: Parameter "Sender" not used preactivacion.pas(69,31) Hint: Parameter "Sender" not used preactivacion.pas(70,31) Hint: Parameter "Sender" not used preactivacion.pas(71,28) Hint: Parameter "Sender" not used preactivacion.pas(72,28) Hint: Parameter "Sender" not used preactivacion.pas(75,30) Hint: Parameter "Sender" not used preactivacion.pas(84,27) Hint: Parameter "Sender" not used preactivacion.pas(85,29) Hint: Parameter "Sender" not used preactivacion.pas(86,32) Hint: Parameter "Sender" not used preactivacion.pas(87,31) Hint: Parameter "Sender" not used preactivacion.pas(91,37) Hint: Parameter "Sender" not used preactivacion.pas(93,33) Hint: Parameter "Sender" not used preactivacion.pas(94,33) Hint: Parameter "Sender" not used preactivacion.pas(449,5) Note: Local variable "sTemp" not used preactivacion.pas(95,30) Hint: Parameter "Sender" not used Compiling principal.pas Compiling activaciongeneral.pas activaciongeneral.pas(106,30) Hint: Parameter "Sender" not used activaciongeneral.pas(105,32) Hint: Parameter "Sender" not used activaciongeneral.pas(103,30) Hint: Parameter "Sender" not used activaciongeneral.pas(9,40) Hint: Unit "DBGrids" not used in activaciongeneral Compiling reportes.pas reportes.pas(71,31) Hint: Parameter "Sender" not used reportes.pas(111,7) Note: Local variable "j" not used reportes.pas(73,33) Hint: Parameter "Sender" not used reportes.pas(151,5) Note: Local variable "iCant" is assigned but never used reportes.pas(70,33) Hint: Parameter "Sender" not used Compiling anular.pas anular.pas(36,33) Hint: Parameter "Sender" not used anular.pas(37,34) Hint: Parameter "Sender" not used anular.pas(38,32) Hint: Parameter "Sender" not used anular.pas(39,30) Hint: Parameter "Sender" not used anular.pas(33,33) Hint: Parameter "Column" not used principal.pas(51,33) Hint: Parameter "Sender" not used principal.pas(52,31) Hint: Parameter "Sender" not used principal.pas(53,38) Hint: Parameter "Sender" not used principal.pas(46,33) Hint: Parameter "Column" not used principal.pas(49,31) Hint: Parameter "Sender" not used STactivacion.lpr(13,28) Hint: Unit "constantes" not used in STactivacion Compiling resource C:\Lazarus Projects\STgestion\STactivacion\STactivacion.rc Compiling resource C:\Lazarus Projects\STgestion\STactivacion\manifest.rc Usage: c:\lazarus_097_2009_05_20\fpc\2.2.5\bin\i386-win32\windres.exe [option(s)] [input-file] [output-file]  The options are:   -i --input=            Name input file   -o --output=           Name output file   -J --input-format=   Specify input format   -O --output-format=  Specify output format   -F --target=         Specify COFF target      --preprocessor=  Program to use to preprocess rc file   -I --include-dir=       Include directory when preprocessing rc file   -D --define [=]    Define SYM when preprocessing rc file   -U --undefine          Undefine SYM when preprocessing rc file   -v --verbose                 Verbose - tells you what it's doing   -l --language=          Set language when reading rc file      --use-temp-file           Use a temporary file instead of popen to read                                the preprocessor output      --no-use-temp-file        Use popen (default)   -r                           Ignored for compatibility with rc   -h --help                    Print this help message   -V --version                 Print version information FORMAT is one of rc, res, or coff, and is deduced from the file name extension if not specified.  A single file name is an input file. No input-file is stdin, default rc.  No output-file is stdout, default rc. c:\lazarus_097_2009_05_20\fpc\2.2.5\bin\i386-win32\windres.exe: supported targets: pe-i386 pei-i386 elf32-i386 elf32-little elf32-big srec symbolsrec tekhex binary ihex STactivacion.lpr(34,1) Error: Error while linking STactivacion.lpr(34,1) Fatal: There were 1 errors compiling module, stopping =========================================================== my lpr file is : program STactivacion; {$mode objfpc}{$H+} uses   {$IFDEF UNIX}{$IFDEF UseCThreads}   cthreads,   {$ENDIF}{$ENDIF}   lazreport, Interfaces, // this includes the LCL widgetset   Forms   { you can add units after this }, preactivacion, RunTimeTypeInfoControls, clientes,   Cliente_Nuevo, constantes, datamodulo, productos, principal, activaciongeneral,   reportes, anular, eliminar, aceptar; {$IFDEF WINDOWS}{$R manifest.rc}{$ENDIF} {$IFDEF WINDOWS}{$R STactivacion.rc}{$ENDIF} begin   Application.Initialize;   Application.CreateForm(TfrmPrincipal, frmPrincipal);   Application.CreateForm(TfrmPreActivacion, frmPreActivacion);   Application.CreateForm(Tfrmclientes, frmclientes);   Application.CreateForm(TfrmClienteNuevo, frmClienteNuevo);   Application.CreateForm(TfrmProducto, frmProducto);   Application.CreateForm(TfrmActivacion, frmActivacion);   Application.CreateForm(TfrmReportes, frmReportes);   Application.CreateForm(TfrmAnularHabilitar, frmAnularHabilitar);   Application.CreateForm(Tfrmeliminar, frmeliminar);   Application.CreateForm(TfrmAceptar, frmAceptar);   Application.CreateForm(TDM, DM);   Application.Run; end.                what happend? i delete all *.so ,*.ppu and compile all, and same ---------------------------------------------------------------------- Blaazen · 2009-06-25 17:36 Hi, I don't know if it will help you, but this: {$IFDEF WINDOWS}{$R manifest.rc}{$ENDIF} {$IFDEF WINDOWS}{$R STactivacion.rc}{$ENDIF} is from delphi. ---------------------------------------------------------------------- cpalx · 2009-06-25 19:07 i have another project, that works fine, and has +++++++++++++++++++++++++++++++++++++++++++ program STalmacen; {$mode objfpc}{$H+} uses   {$IFDEF UNIX}{$IFDEF UseCThreads}   cthreads,   {$ENDIF}{$ENDIF}   zcomponent, Interfaces, // this includes the LCL widgetset   Forms   { you can add units after this }, main, familia,  familia_nueva,   grupo, SubGrupo, almacen, grupo_nuevo, Almacen_Nuevo, SubGrupo_Nuevo, clase, producto_nuevo,   gamma, gamma_nueva, clase_nueva, guiaingreso,  proveedor,   proveedor_nuevo, series, asignaalmacen, wizard_guia, reportes,   eliminar, lazreport, aceptar, productos, lazreportpdfexport, traduccion,   TurboPowerIPro, lazdbexport, SQLDBLaz, datamodulo; {$IFDEF WINDOWS}{$R manifest.rc}{$ENDIF} {$IFDEF WINDOWS}{$R STalmacen.rc}{$ENDIF} begin   Application.Initialize;   Application.CreateForm(TfrmPrincipal, frmPrincipal);   Application.CreateForm(TfrmAlmacen, frmAlmacen);   Application.CreateForm(TfrmAlmacenNuevo, frmAlmacenNuevo);   Application.CreateForm(TfrmClase, frmClase);   Application.CreateForm(TfrmClaseNueva, frmClaseNueva);   Application.CreateForm(TfrmFamilia, frmFamilia);   Application.CreateForm(TfrmFamiliaNueva, frmFamiliaNueva);   Application.CreateForm(TfrmGamma, frmGamma);   Application.CreateForm(TfrmGammaNueva, frmGammaNueva);   Application.CreateForm(TfrmGrupo, frmGrupo);   Application.CreateForm(TfrmGrupoNuevo, frmGrupoNuevo);   Application.CreateForm(TfrmGuiaIngreso, frmGuiaIngreso);   Application.CreateForm(TfrmIngresoSeries, frmIngresoSeries);   Application.CreateForm(TfrmProductoNuevo, frmProductoNuevo);   Application.CreateForm(TfrmProveedor, frmProveedor);   Application.CreateForm(TfrmProveedorNuevo, frmProveedorNuevo);   Application.CreateForm(TfrmSubGrupo, frmSubGrupo);   Application.CreateForm(TfrmSubGrupoNuevo, frmSubGrupoNuevo);   Application.CreateForm(TfrmAsignaALmacen, frmAsignaALmacen);   Application.CreateForm(TfrmGuiasIngresoNueva, frmGuiasIngresoNueva);   Application.CreateForm(TfrmReportes, frmReportes);   Application.CreateForm(TfrmEliminar, frmEliminar);   Application.CreateForm(TfrmAceptar, frmAceptar);   Application.CreateForm(TfrmProductos, frmProductos);   Application.CreateForm(TDM, DM);   Application.Run; end. ---------------------------------------------------------------------- cpalx · 2009-06-25 19:10 I deleted both lines, and now give me the error : Project STactivacion.exe raised exception class 'External: SIGSEGV' and goes to LcinLintf.inc file line 195 Result := WidgetSet.RawImage_QueryDescription(AFlags, ADesc); i have that error ---------------------------------------------------------------------- Blaazen · 2009-06-26 12:17 Usually *.lpr file seems like this: program MyProject; {$mode objfpc}{$H+} uses   Forms,   Unit1 in 'Unit1.pas' {Form1},   Unit2 in 'Unit2.pas' {Form2},   Unit3 in 'Unit3.pas' {Form3},   begin   Application.Initialize;   Application.CreateForm(TForm1, Form1);   Application.CreateForm(TForm2, Form2);   Application.CreateForm(TForm3, Form3);   Application.Run; end. I looked to freepascal manual yesterday: http://www.freepascal.org/docs-html/prog/progsu64.html#x71-690001.1.64 and it seems it doesn't support the *.rc files, but when i read discussions, people say it does. Otherwise, I don't know how to help you. ---------------------------------------------------------------------- Leledumbo · 2009-06-29 08:16 Quote... Compiling resource C:\Lazarus Projects\STgestion\STactivacion\STactivacion.rc ... You have spaces in the project path, some (or all?) GNU tools (including windres) can't yet deal with this. PS (for developers): Does quoting path with spaces help? i.e. C:\Lazarus Project -> "C:\Lazarus Project" QuoteI looked to freepascal manual yesterday: ... and it seems it doesn't support the *.rc files ... It DOES support, but only on Windows. That's why the {$R} directive is protected with {$IFDEF Windows}. ---------------------------------------------------------------------- Vincent Snijders · 2009-06-29 08:23 Quote from: cpalx on June 25, 2009, 09:10:53 pmProject STactivacion.exe raised exception class 'External: SIGSEGV' and goes to LcinLintf.inc file line 195 Result := WidgetSet.RawImage_QueryDescription(AFlags, ADesc); The .lpr doesn't use the interfaces unit, so the WidgetSet variable is not initialized. So:Code: [Select]program MyProject; {$mode objfpc}{$H+} uses   Interfaces, Forms, ... ---------------------------------------------------------------------- Leledumbo · 2009-06-29 09:27 QuoteThe .lpr doesn't use the interfaces unit, so the WidgetSet variable is not initialized.But the original code (from original poster) does, only the order (I think) is wrong, because a component (ZComponent) is put before it. Code: [Select]program STalmacen; {$mode objfpc}{$H+} uses   {$IFDEF UNIX}{$IFDEF UseCThreads}   cthreads,   {$ENDIF}{$ENDIF}   zcomponent, Interfaces, // this includes the LCL widgetset   Forms ... ---------------------------------------------------------------------- cpalx · 2009-07-01 20:00 lazreport, Interfaces, // that was the error, Lazreport must be later than Interfaces Thanks