Recent

Author Topic: 1st step with Lazarus ... and compil error with program demo  (Read 324 times)

Patrice68

  • New member
  • *
  • Posts: 6
Hello,
I have download https://sourceforge.net/projects/fortes4lazarus/files/ fortesreport-3.24-LCL-R2.zip, and I try the program demo.
(of course, I have install Fortes4Lazarus whis the online package manager)
But, when I compil for exemple the project "Etiqueta", I have this message :
Quote
Compilation du projet - Cible : Etiqueta.exe : Code de sortie 1 - Erreurs : 1 - Avertissements : 2
Warning: 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 ihex
Etiqueta.lpr(19,1) Error: Error while compiling resources -> Compile with -vd for more details. Check for duplicates.
Codetools - Erreurs : 1
:o
What is happening ?


Long-time user of Delphi, new in Lazarus and like any beginner ...

wp

  • Hero Member
  • *****
  • Posts: 5839
Re: 1st step with Lazarus ... and compil error with program demo
« Reply #1 on: May 21, 2019, 03:56:14 pm »
I cannot confirm with 32bit Laz/fpc on Win10/64bit, but I can with 64bit Laz/fpc.

When I open then project file of the "Etiqeta" demo I see the line "{$IFDEF WINDOWS}{$R Etiqueta.rc}{$ENDIF}" which is usually not found in a Lazarus program. When I remove this line the program compiles and runs fine also on 64 bit Lazarus. Maybe the windres resource compiler is not compatible with 64 bit.

Next time when you post a question, please don't double-post - a single post is enough.
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

Patrice68

  • New member
  • *
  • Posts: 6
Re: 1st step with Lazarus ... and compil error with program demo
« Reply #2 on: May 21, 2019, 05:10:20 pm »
Oh!  :o Yes! remove the line, remove the problem, and it compiles!
weird  %)

Quote
Next time when you post a question, please don't double-post - a single post is enough.
Sorry, but I sure to click once on the "Post" button ... arfff! forum bug :D
Long-time user of Delphi, new in Lazarus and like any beginner ...

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7231
Re: 1st step with Lazarus ... and compil error with program demo
« Reply #3 on: May 21, 2019, 05:56:48 pm »
windres is for 32-bit, win64 uses gorc iirc.