Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1054563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:25:34+00:00 2026-05-16T17:25:34+00:00

Should Library path point to the source files of packages? Delphi 7 documentation says

  • 0

Should “Library path” point to the source files of packages?
Delphi 7 documentation says yes. But other people say no: “The “Library” path should lead to compiled files (.dcp, .dcu) and (if needed) resource files (.res, .dfm) only”.

Update:
The thing is that if you DON’T add the path to your packages in the “Library path” then every single time you create a new DPR project you have to manually collect the path to your packages (many) and enter them into the Project’s Option “Browse” box, else you will get “file xxx.dcu not found”. This doesn’t sound that nice. For years I used to add all my paths in Library and never had to manually add the paths every time I created a new project.

  • My packages are universal/global (not specific to a single project but to many projects).
  • I use one single computer for programming so I don’t care about sharing the code.
  • I have the PAS and DCU files in the same folder.
  • I don’t mind recompiling the PAS files often. Compile takes 1-2 seconds, build takes 3-4 seconds.
  • Relative paths ARE OUT OF QUESTION because “Delphi (all versions) seems to change the working directory sometimes on opening files, which in turn messes up relative paths (they are relative to the working dir, not the .dpr(oj) apparently). If I notice this, I open a file (using file->Open) in the working dir, and all is fine again.”
  • I use to edit most of the packages a lot in a single day.

Delphi 7 is such a mess when about setting the paths and official documentation is 0. 🙁

UPDATE:
I have done the change. It works, but it not even by far perfect (or at least elegant): How to remove duplicate resources (RES, DFM) while using Delphi with non specific Library paths?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T17:25:35+00:00Added an answer on May 16, 2026 at 5:25 pm

    The technique I describe below works well for us because, for whatever version of Delphi we’re using, all projects use the same version of libraries.

    For example, we have a branch that is built (and still actively developed) using Delphi 6. Our trunk was migrated to Delphi 2009 over a year ago, then migrated to 2010 a couple of months ago, and will soon be migrated to Delphi XE. But all projects in the trunk will use the same version of Delphi and the same version of our libraries.

    Third-party component vendors like to install the source to a shared location and then use different output folders for the compiled code. I, on the other hand, prefer to install a separate copy of each third-party library for each version of Delphi installed. If I install an updated “version 5.4” of one of my favorite component libraries, I may not want that single install to apply to every version of Delphi I’m using. So each component library is installed separately for each version of Delphi installed. (This is a pain when the library uses a “typical” Windows installer, that doesn’t want to install the same product multiple times.)

    Having said all of that, our global Library path in Tools|Options points to the OUTPUT folders of all third-party libraries. This way, every new project is ready to go without any extra work, and compiling any project doesn’t recompile the standard third-party library code that doesn’t change as a project changes.

    On the rare instance we need a patch (source code override) to a third-party library, those go into a separate folder and are compiled each time the project is compiled. Once the third-party releases an update with the fix included, we remove our copy of the patch.

    We use third-party libraries that contain a lot of source code, such as ReportBuilder, Raize Components, the TurboPower products, etc. I see no reason to recompile all of that code any time I “Build” my project.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What library should be included to use TransparentBlt? This is VC98 (Visual Studio 6)
Can Thread.getContextClassLoader() be null ? The javadoc is not really clear. Should a library
If for example I should not use standard library functions like printf() , putchar()
I've been informed that my library is slower than it should be, on the
Looking for a c# library that interfaces to multiple merchant gateways. Should at minimum
I dont know if I should use the httpcontext caching or the Enterprise Library
I am looking for a good JavaScript library for parsing XML data. It should
According to [MSDN: Array usage guidelines]( http://msdn.microsoft.com/en-us/library/k2604h5s(VS.71).aspx) : Array Valued Properties You should use
Should I start with Django or JavaScript?
Should the folders in a solution match the namespace? In one of my teams

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.