Recent

Author Topic: Lazarus-Option "-pg" is not, or not yet?  (Read 1091 times)

d2010

  • New Member
  • *
  • Posts: 31
Lazarus-Option "-pg" is not, or not yet?
« on: June 06, 2022, 09:15:37 am »
Hello..
Fatal: Option "-pg" is not, or not yet, supported on the current target platform
You please help me?
« Last Edit: June 06, 2022, 09:17:35 am by d2010 »

MarkMLl

  • Hero Member
  • *****
  • Posts: 6686
Re: Lazarus-Option "-pg" is not, or not yet?
« Reply #1 on: June 06, 2022, 09:28:08 am »
That's a compiler option, nothing to do with Lazarus as such. What sort of problem are you having?

It's usually good practice to post example code, or at least in your case an example command line plus a description of what you're seeing and how it fails to match expectations.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

d2010

  • New Member
  • *
  • Posts: 31
Re: Lazarus-Option "-pg" is not, or not yet?
« Reply #2 on: June 06, 2022, 09:34:36 am »
That's a compiler option, nothing to do with Lazarus as such. What sort of problem are you having?
MarkMLl

I do not found devlaza.exe on disk?
Can I search again . the result of devlaza.lpi to devlaza.exe?

tetrastes

  • Sr. Member
  • ****
  • Posts: 481
Re: Lazarus-Option "-pg" is not, or not yet?
« Reply #3 on: June 06, 2022, 09:38:34 am »
I suppose your target is Windows 64 bit?
This option is only for 32 bit:

440bx

  • Hero Member
  • *****
  • Posts: 4037
Re: Lazarus-Option "-pg" is not, or not yet?
« Reply #4 on: June 06, 2022, 10:08:12 am »
@d2010

I see your code is using SetWindowLong and SetWindowLongPtr protected by an $ifdef.  You might be interested in knowing that the FPC API definitions for Windows declare SetWindowLongPtr for 32bit, mapping it to SetWindowLong, which means, you can simply code a call to SetWindowLongPtr without any $ifdef.    IOW, SetWindowLongPtr works in both 32bit and 64bit (with FPC.)


(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

d2010

  • New Member
  • *
  • Posts: 31
Re: Lazarus-Option "-pg" is not, or not yet?
« Reply #5 on: June 06, 2022, 10:56:29 am »
Thank,,you...
Yes that is solution.
Code: [Select]
You got ProjectOptions->compiler Options Debugging>Other Debugger Option

I reboot my Pc on other Operatingsystem , and I Fixed.
The OldWinOs was Win7x64... and
---Now I boot on "Win10x32+Lazarus2.2x32"

d2010

  • New Member
  • *
  • Posts: 31
Re: Lazarus-Option "-pg" is not, or not yet?
« Reply #6 on: June 14, 2022, 12:55:16 pm »
That's a compiler option, nothing to do with Lazarus as such. What sort of problem are you having?

It's usually good practice to post example code, or at least in your case an example command line plus a description of what you're seeing and how it fails to match expectations.

MarkMLl
Do you work, today on computer "MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb."?>

MarkMLl

  • Hero Member
  • *****
  • Posts: 6686
Re: Lazarus-Option "-pg" is not, or not yet?
« Reply #7 on: June 14, 2022, 01:12:26 pm »
Do you work, today on computer "MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb."?>

Tinker with it on occasion, although I now have more memory available. Why?

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018