title: Compiling projects with DCC32 as in Delphi 6 professional IDE
body: <p>IDE: Delphi 6 Professional.</p>
  
  <p>We have big projects.</p>
  
  <p>I cannot use Project Groups to build them all, because I got OM errors, and strange file errors when I did it.</p>
  
  <p>My idea was that I will use DCC32.exe
  Priorly I had a fight with the command line parameters (dcc32.cfg), but it I thought I solved it...</p>
  
  <p>Today I tried to compile projects with it, but at first project I got errors.</p>
  
  <p>chdir c:\d\anyproject
  dcc32 -b any.dpr</p>
  
  <p>The error reported me that it wasn't found a unit. I tried to compile in Delphi, and it was successful.</p>
  
  <p>So I checked the problem. Why the previous project buildings were successful, and why this wasn't...?</p>
  
  <p>Then I realized that this dpr is using references to a subdirectory, but not all files added to the project, more of them are linked by project's "search path".</p>
  
  <p>But if it's true, then this meaning that DCC32 ISN'T USING THE PROJECT'S DOF/CFG FILES!</p>
  
  <p>So the problem is that Delphi merges everything to provide the result.
  It merges the global search paths, the project's compiler directives, the searching paths, so everything, and using the project's conditional directives too.</p>
  
  <p>If I understand it well, the DCC32 don't use, only the dcc32.cfg, and I must merge everything for the compilation, what is an impossible job, because I need to write a parser what is interprets the project's parameters, and merges with globals.</p>
  
  <p>Or I misunderstand something, and the problem is caused by other thing what I missed?</p>
  
  <p>I waiting for your suggestions!</p>
  
  <p>Thanks for all idea, link, info, etc.</p>