各位帮忙解释一下这行错误的意思
我快疯了,在进行连接时报的鬼错误。
------------------------------------------------------------------------
MainThread.o(.text+0x20): In function `CMainThread::CMainThread[not-in-charge]()':
/home/kunp/UDPT/TestThread/MainThread.cpp:5: undefined reference to `vtable for CMainThread'
MainThread.o(.text+0x84): In function `CMainThread::CMainThread[in-charge]()':
/home/kunp/UDPT/TestThread/MainThread.cpp:5: undefined reference to `vtable for CMainThread'
--------------------------------------------------------------------------
附上
MainThread.h
-----------------------------------------------------------------------
#include "FDThread.h"
#include <iostream>
using namespace std;
class CMainThread : public CFDThread
{
public:
CMainThread();
~CMainThread();
protected:
int ThreadProc ();
void StopProc ();
};
#endif
-------------------------------------------------------------------------
MainThread.cpp
-------------------------------------------------------------------------
#include "MainThread.h"
CMainThread::CMainThread()
{
cout << "Create MAinThread...." << endl;
}
int CMainThread::ThreadProc ()
{
cout << "test" << endl;
return 0;
}
void CMainThread::StopProc()
{
cout << "stop" << endl;
}