1
votes

I have a legacy app that years ago used the old Borland Database Engine (BDE), but no longer needs it. I upgraded to Delphi XE7 last year, and now it will not build my app, as gives the following error:

[dcc32 Fatal Error] E2202 Required package 'bdertl' not found

The problem is, I cannot find where my project has this dependency, so I cannot remove it! Any pointers greatly appreciated! Regards

1
Are you trying to build your project with runtime packages?MartynA
Yes, I am - if I don't, I run into other problems with packages I have written. I don't know whether I really need runtime packages or not, to be honest...Bob
The few times I've built a project using runtime packages, I've always compiled the project to a plain .Exe first. Building a plain (stand-alone) .Exe avoids runtime dependency on other packages so is a good thing, by and large. Better to sort out your probs with building a stand-alone .Exe, imo.MartynA
There might be another package that you are using that is linking to bdertl. Another option is that there could be a reference to it somewhere. I would do a text search for bdertl in your project source folder (and if you can in the packages too).Graymatter
Remove stuff until the error goes away. The last thing you removed had the final ref.David Heffernan

1 Answers

2
votes

If you are compiling a program or library project, then your project options include a setting named runtime packages, which is a list of names of packages that Delphi expects your program to use. That list probably includes bdertl. Remove that entry, or disable the link with runtime packages option. Previous answers have described the settings in more detail, including pictures.

If you are compiling a package project, then your project includes a section called the requires list (adjacent to the contains list). That list includes an entry for bdertl; delete it.