How do I figure out where my project brings in a module I don't want to use?

332 Views Asked by At

I am converting a project from Delphi 5 to Delphi 2007 and am getting the compile error

Required package 'qrpt' not found.

I am not using Quick Reports in this project and I have tried commenting out some of the units in the uses clause to see if this would fix the issue but it did not.

Is there a way to find out which unit is using Quick Reports?

2

There are 2 best solutions below

0
On

I've used Icarus in the past to generate a uses report for cleaning up my own delphi code. You can find it at http://www.peganza.com/products_icarus.htm. I am not affiliated with the company, I just like their tools (Pascal Analyzer especially - great offline profiler).

0
On

There is Delphi Unit Dependency Scanner, which can list all units used and their interdependencies. Finding unused units is also a possibility.