静的ライブラリとそれを使用する別のプログラムがあります。
静的ライブラリでは、継承なしでヘッダーを定義すると、正常に機能します。
class TcpCommunication
一方、QTクラスで継承を使用すると、
class TcpCommunication:public QTcpServer
このスタティック ライブラリを使用するコードをコンパイルすると、リンケージ エラーが発生します。
>MStoDKAPId.lib(TcpCommunication.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall QTcpServer::~QTcpServer(void)" (__imp_??1QTcpServer@@UAE@XZ) referenced in function "public: virtual __thiscall TcpCommunication::~TcpCommunication(void)" (??1TcpCommunication@@UAE@XZ)
何が問題になる可能性がありますか? ありがとう。