Recent

Author Topic: Defining a compiler symbol  (Read 2652 times)

stab

  • Full Member
  • ***
  • Posts: 234
Defining a compiler symbol
« on: March 13, 2013, 08:51:02 pm »
Hi,

How and where do I define a compiler symbol, for example PROFILE.

Regards
stab %)

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Defining a compiler symbol
« Reply #1 on: March 13, 2013, 09:14:16 pm »
Do you mean this:

{$DEFINE PROFILE}
at the top of the applicable unit (or via an include file {$i bla.inc} in multiple units)

or e.g. via -dPROFILE via FPC command line.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

stab

  • Full Member
  • ***
  • Posts: 234
Re: Defining a compiler symbol
« Reply #2 on: March 14, 2013, 06:08:39 am »
Thanks BigChimp

 

TinyPortal © 2005-2018