Linkage Error with Inherited Class
Posted
by metdos
on Stack Overflow
See other posts from Stack Overflow
or by metdos
Published on 2010-05-18T11:23:55Z
Indexed on
2010/05/18
11:30 UTC
Read the original article
Hit count: 209
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.
© Stack Overflow or respective owner