Linkage Error with Inherited Class
- by metdos
I have static library and another program which uses it.
In the static library If I define header without inheretence it works fine.
class TcpCommunication
On the other hand If I use inheretence with a QT class,
class TcpCommunication:public QTcpServer
I'm getting linkage error when I compiling code which uses this static library.
>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)
What can be the problem?
Thanks.