Original Post
Hi all,
I've been stumped on this C++ linking error for the last hour.
I have a class that inherits CSocket:
class CServerSocket : public CSocket
{
//constructor
public:
CServerSocket();
...
}
And then I'm declare an instance of this class in a header file (File.h):
CServerSocket* pSocket;
And then I try to create a new instance of this variable in the corresponding File.cpp:
pSocket = new CServerSocket ();
When I build this I keep getting a linking error:
error LNK2019: unresolved external symbol "public: __thiscall CServerSocket::CServerSocket(void)" (??0CServerSocket@@QAE@XZ) referenced in function "public: void __thiscall CMetricServerDlg::OnBnClickedStart(void)" (?OnBnClickedStart@CMetricServerDlg@@QAEXXZ)
MetricServer fatal error LNK1120: 1 unresolved externals
Can anyone tell me how to fix this?? I'm stumped...
[edited by - DimSum on October 8, 2002 3:42:23 PM]