Lazarus

Free Pascal => General => Topic started by: julkas on November 12, 2019, 02:12:01 pm

Title: Custom compiler options / defines
Post by: julkas on November 12, 2019, 02:12:01 pm
Where I can find definition of following options / defines -
-dBorland -dVer150 -dDelphi7 -dCompiler6_Up -dPUREPASCAL?
Title: Re: Custom compiler options / defines
Post by: PascalDragon on November 12, 2019, 03:16:34 pm
Judging from the names these are probably defined in some include file (jedi.inc is a good candidate should you work with a 3rd party source). Neither FPC nor any of the Lazarus packages defines these.
Title: Re: Custom compiler options / defines
Post by: marcov on November 12, 2019, 04:12:21 pm
Yes, these are mostly to deal with Delphi specific versioning, and don't relate to FPC which has its own versioning.
Title: Re: Custom compiler options / defines
Post by: Thaddy on November 12, 2019, 04:53:30 pm
-dXXXX means simply to instruct the compiler to define a certain option that resides anywhere in the source code. Any option as possibly defined like -dwhatever will be parsed  ($ifdef  whatever}... {$endif}
Title: Re: Custom compiler options / defines
Post by: julkas on November 12, 2019, 06:05:23 pm
Judging from the names these are probably defined in some include file (jedi.inc is a good candidate should you work with a 3rd party source). Neither FPC nor any of the Lazarus packages defines these.
Seems you are right.