LoginSignup
1

More than 5 years have passed since last update.

C++ Builder 10.2 Tokyo > 静的ライブラリが見つかりません: bdertl.lib > bdertl.libとは | エラー対処

Last updated at Posted at 2018-12-07
動作環境
C++ Builder 10.2 Tokyo

XE4で実装していたプロジェクト(FastReport VCL 5使用)を10.2 Tokyoへ移行しようとしている。

下記のエラーが出た。

2018-12-07_18h23_34.png

bdertl.libとは何か?

Static library for the "BDE DB components" package.

#pragma link "bdertl.lib"

下記は関連するかどうか。
https://forums.embarcadero.com/message.jspa?messageID=880246

After doing it a second time on my laptop the linking error for BDE is still there, the line #pragma link "bdertl.lib" needs to be added.

追加してみたけど、上記のエラーはやはり出る。

.cbprojファイル

.cbprojファイルでbdertl.libが記載されているのは下記の二か所


<AllPackageLibs>rtl.lib;vcl.lib;IndySystem.lib;KTools.lib;IndyCore.lib;IndyProtocols.lib;Tee.lib;vclimg.lib;vclx.lib;DbxCommonDriver.lib;dbrtl.lib;frx25.lib;fs25.lib;fqb250.lib;bdertl.lib;vcldb.lib;frxe25.lib;frx25.lib;fs25.lib;fqb250.lib;frxe25.lib</AllPackageLibs>


<LinkPackageStatics>rtl.lib;vcl.lib;IndySystem.lib;KTools.lib;IndyCore.lib;IndyProtocols.lib;Tee.lib;vclimg.lib;vclx.lib;DbxCommonDriver.lib;dbrtl.lib;frx25.lib;fs25.lib;fqb250.lib;bdertl.lib;vcldb.lib;frxe25.lib;frx25.lib;fs25.lib;fqb250.lib;frxe25.lib</LinkPackageStatics>

エディタにて2箇所からbdertl.libを削除した。
IDEで開きビルドするとエラーはなくビルドできた。
が、後述のダイアログでの対処の方が標準的な方法と思われる。

ダイアログ > リファレンスから削除

2018-12-07_18h23_34.png

エラーダイアログにおいて「リファレンスから削除」というチェックがある。
こちらを使えば、自分でエディタで修正する必要はなさそう。
リファレンスから削除するか、グローバルライブラリパスに追加するかは判断の上で実施する。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1