C++ Builder 10.2 Tokyo
XE4で実装していたプロジェクト(FastReport VCL 5使用)を10.2 Tokyoへ移行しようとしている。
下記のエラーが出た。
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で開きビルドするとエラーはなくビルドできた。
が、後述のダイアログでの対処の方が標準的な方法と思われる。
ダイアログ > リファレンスから削除
エラーダイアログにおいて「リファレンスから削除」というチェックがある。
こちらを使えば、自分でエディタで修正する必要はなさそう。
リファレンスから削除するか、グローバルライブラリパスに追加するかは判断の上で実施する。