Recent

Author Topic: cambiar la version de FPC  (Read 241 times)

zehcnas

  • Newbie
  • Posts: 2
cambiar la version de FPC
« on: November 05, 2025, 12:48:28 pm »
Estoy utilizando LAZARUS 4.2 con FPC 3.2.2 y estoy intentando pasar un codigo de delphi a Lazarus y me encuentro con la siguiente estructura:
Code: Pascal  [Select][+][-]
  1. type
  2.   TMiProcedure = reference to procedure;
y al intentar compilar me da el error: Identifier not found "reference"

He probado casi todo lo que he visto al respecto, activar el modo DELPHI {$mode delphi}, activar los modos anonymous, y otras muchas soluciones que he encontrado en estos foros, pero no he conseguido solucionar el problema.

En teoria a partir de la version 3.2 de FPC deberia de funcionar, pero no lo consiguo. He visto que con otras versiones como la 3.2.4 o la 3.3.1 quizas funciones. La pregunta es ¿ como cambio en LAZARUS la version de FPC?

gracias de antemano

Thaddy

  • Hero Member
  • *****
  • Posts: 18305
  • Here stood a man who saw the Elbe and jumped it.
Re: cambiar la version de FPC
« Reply #1 on: November 05, 2025, 12:59:11 pm »
That is because you need fpc trunk/main for that. Not  fpc 3.2.2 but 3.3.1.
I can understand your frustration. It won't be in 3.2.4.
For hobby programmers, there is no objection to use trunk.
(btw: this is not a Spanish language forum, so please ask your questions in English, auto-translating is allowed)
(btw2: many of us can read Spanish, but not answer in Spanish)

If you use fpcupdeluxe and choose trunk for fpc and stable for lazarus it will work.
You can also use trunk for Lazarus.
« Last Edit: November 05, 2025, 01:13:32 pm by Thaddy »
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

tetrastes

  • Hero Member
  • *****
  • Posts: 694
Re: cambiar la version de FPC
« Reply #2 on: November 05, 2025, 01:21:11 pm »
(btw: this is not a Spanish language forum, so please ask your questions in English, auto-translating is allowed)
(btw2: many of us can read Spanish, but not answer in Spanish)

btw3: this is Lazarus »Forum »Other Languages »Spanish

zehcnas

  • Newbie
  • Posts: 2
Re: cambiar la version de FPC
« Reply #3 on: November 05, 2025, 06:10:20 pm »
Gracias Thaddy por tu respuesta. Es alguna de las opciones que ya llevaba intentadas.

Estoy utilizando fpcupdeluxe version V2.4.0f build 506 u siempre obtengo divesrsos errores y no termina la actualización, este es el error al intentar utilizar FPC Trunk

Code: Pascal  [Select][+][-]
  1. treeview.inc(786,19) Error: Incompatible type for arg no. 1: Got "Pointer", expected "TObject"
  2. comctrls.pp(4293) Fatal: There were 1 errors compiling module, stopping
  3. Fatal: Compilation aborted
  4. Error: E:\lazarus\fpc\bin\x86_64-win64\ppcx64.exe returned an error exitcode
  5. E:\lazarus\fpcbootstrap\make.exe: *** [lazbuild] Error 2
  6. fpcupdeluxe: ERROR: Lazarus Native Installer (BuildModuleCustom: Lazbuild): make.exe returned exit status #2.
  7.  
  8.  
  9. ERROR: Fpcupdeluxe fatal error !
  10. Sequencer (UserIDE): Failure running fpcupdeluxe: error executing sequence UserIDE
  11. Sequencer (Lazarus): Failure running fpcupdeluxe: error executing sequence Lazarus
  12. Sequencer (Default): Failure running fpcupdeluxe: error executing sequence Default

 

TinyPortal © 2005-2018