Author Topic: $(PathMacro) - what exactly is this?  (Read 301 times)


  • Full Member
  • ***
  • Posts: 148
$(PathMacro) - what exactly is this?
« on: November 19, 2019, 05:23:47 pm »
Hi guys,

I have come across abit more into the lazarus IDE and I wonder how exactly work under the hood, I mean I know what they are for, but how are they implemented and can I also create some myself, which I find useful?

are these macros just an internal constant within the src-code of lazarus like:
" var PathMacro: String[15];
   PathMacro := 'C:\Lazarus';"

and sent to the linker when he needs to know where is the stuff he needss to link into our .exe file?

or how do they exactly work, I didnt find a proper answer on google.

and am I also able to create my own ones with predfined paths linked to these macros, when I want to add external units, laying in different virtual drives and stuff?

like: "$(MyOwnPathForAnOpenSourcePackage)\lib\$(TargetOS)\SomeOpenSourceLibrary" ?

I would love to hear from you :)

best regards



TinyPortal © 2005-2018