1

私は BDS 2006 を使用しており、コンソール アプリケーションで TQuery を使用する予定です。アプリケーションを別のPCにエクスポートしたいので、オプション「動的ライブラリを使用する」と「ランタイムパッケージを使用する」を無効にします。ソースをコンパイルすると、次のリンカ エラーが発生します。「 unresolved external '__fastcall Dbtables::TQuery::TQuery(Classes::TComponent*) referenced ...」

私のコードの下。別のヘッダー ファイルが必要ですか? はいの場合、どのヘッダー ファイルが必要ですか?

ありがとう

#include <vcl.h>
#include <DBTables.hpp>
#pragma hdrstop
TQuery *Query1;
int main(int argc, char* argv[])
{
   Query1 = new TQuery(NULL);
   //do some operation with Query1
   system ("pause");
   delete Query1;
   return 0;
}
4

0 に答える 0