delphidcc32

Delphi command line compiler - using same library path as the IDE


Is there a way to instruct DCC32 to use the same library path that is used by the IDE (i.e. in Tools/Options/Environment Options/Delphi Options/Library - Win32)?

For obvious reasons, I do not want to maintain two lists of directories (one in a cfg file, one in the Delphi IDE).


Solution

  • If you are using Delphi 2006 or later, you can use MSBuild instead of dcc32, and MSBuild will use the same search path as the IDE