Recent

Author Topic: Custom compiler options / defines  (Read 1111 times)

julkas

  • Guest
Custom compiler options / defines
« on: November 12, 2019, 02:12:01 pm »
Where I can find definition of following options / defines -
-dBorland -dVer150 -dDelphi7 -dCompiler6_Up -dPUREPASCAL?

PascalDragon

  • Hero Member
  • *****
  • Posts: 5446
  • Compiler Developer
Re: Custom compiler options / defines
« Reply #1 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.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: Custom compiler options / defines
« Reply #2 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.

Thaddy

  • Hero Member
  • *****
  • Posts: 14205
  • Probably until I exterminate Putin.
Re: Custom compiler options / defines
« Reply #3 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}
Specialize a type, not a var.

julkas

  • Guest
Re: Custom compiler options / defines
« Reply #4 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.

 

TinyPortal © 2005-2018