Recent

Author Topic: Library paths and templates  (Read 7070 times)

User137

  • Hero Member
  • *****
  • Posts: 1791
    • Nxpascal home
Library paths and templates
« on: February 10, 2010, 03:11:14 pm »
As a long time Delphi user i've come used to Library path setting that isn't project dependant but same paths works for every project. I have .pas libraries for my graphics engine, network etc and just want easy way to program with them.

I do want to keep the folder structure so files don't get mixed, meaning i can't mix them with lazarus or freepascal units whereever they are located, and when i tried to put them in
D:\pascal\lazarus\lcl\lib\synapse
the compiler didn't find them (subdirectories) unless added in project's compiler settings.

There are couple folders i need to add for most projects and 1 way i could think of would be adding them to compiler settings "Other Unit files" -> Path templates. But i don't see a way to edit templates and couldn't find them with raw text search either.

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1225
    • Burdjia
Re: Library paths and templates
« Reply #1 on: February 10, 2010, 06:06:27 pm »
I put my libraries in the RTL directory and it finds it without problem. BTW the RTL is in the FPC's directory, not in the Lazarus' one.
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

User137

  • Hero Member
  • *****
  • Posts: 1791
    • Nxpascal home
Re: Library paths and templates
« Reply #2 on: February 10, 2010, 07:29:58 pm »
Thanks, RTL directory works without adding stuff to project settings  :D

But it didn't allow Lazarus to ctrl+click to open them from uses list so adding them in main settings -> Codetools and
$(LazarusDir)\fpc\2.2.4\source\rtl\...All individual directories separated by ;
and it now lets do that aswell. (Doesn't work for sub dirs)

Edit: No.. that would've been too simple. Made new project and compiler doesn't find units anymore. Tried in both fpc's rtl folders without success.
« Last Edit: February 11, 2010, 01:38:11 am by User137 »

 

TinyPortal © 2005-2018