Lazarus

Programming => Operating Systems => Windows => Topic started by: d2010 on June 06, 2022, 09:15:37 am

Title: Lazarus-Option "-pg" is not, or not yet?
Post by: d2010 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?
Title: Re: Lazarus-Option "-pg" is not, or not yet?
Post by: MarkMLl 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
Title: Re: Lazarus-Option "-pg" is not, or not yet?
Post by: d2010 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?
Title: Re: Lazarus-Option "-pg" is not, or not yet?
Post by: tetrastes on June 06, 2022, 09:38:34 am
I suppose your target is Windows 64 bit?
This option is only for 32 bit:
Title: Re: Lazarus-Option "-pg" is not, or not yet?
Post by: 440bx 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.)


Title: Re: Lazarus-Option "-pg" is not, or not yet?
Post by: d2010 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"
Title: Re: Lazarus-Option "-pg" is not, or not yet?
Post by: d2010 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."?>
Title: Re: Lazarus-Option "-pg" is not, or not yet?
Post by: MarkMLl 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
TinyPortal © 2005-2018