Recent

Author Topic: [SOLVED] linking errors Windows 11  (Read 1308 times)

gmold

  • New Member
  • *
  • Posts: 10
[SOLVED] linking errors Windows 11
« on: April 09, 2022, 07:31:29 am »
Hello,
I get errors when linking a program that has an Timage and bitmap.  An example is below.
See the attachment.
I using Lazarus 32bit 2.2.0 on Windows 11.

Are there additional libraries I have to include?

Glenn,
Australia.
« Last Edit: April 09, 2022, 11:32:22 pm by gmold »

tetrastes

  • Hero Member
  • *****
  • Posts: 761
Re: linking errors Windows 11
« Reply #1 on: April 09, 2022, 10:28:49 am »
Graphics.pp is LCL unit. You cannot name your source files with FPC and Lazarus libraries file names.  ;D
So rename your graphics.lpr.

gmold

  • New Member
  • *
  • Posts: 10
Re: linking errors Windows 11
« Reply #2 on: April 09, 2022, 11:31:49 pm »
So simple but I had no idea.  :(

Thanks

Glenn
Australia

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12797
  • FPC developer.
Re: [SOLVED] linking errors Windows 11
« Reply #3 on: April 10, 2022, 02:14:55 pm »
Note that in case the EXE name has some meaning, it is possible to give the EXE a different name than the main program source using the FPC -o parameter.

Quote
  -o<x>  Change the name of the executable produced to <x>

 

TinyPortal © 2005-2018