//main
#include <QtCore/QCoreApplication>
#include "ckeyboardtest.h"
int main(int argc, char *argv[])
{
CKeyboardTest a(argc, argv);
return a.exec();
}
//.h
#ifndef CKEYBOARDTEST_H
#define CKEYBOARDTEST_H
#include <QCoreApplication>
#include "qtservice.h"
class CKeyboardTest : public QtService<QCoreApplication>
{
/*Q_OBJECT*/
public:
CKeyboardTest(int argc, char **argv);
~CKeyboardTest();
protected:
void start();
void stop();
void pause();
void resume();
void processCommand(int nCode);
private:
};
#endif // CKEYBOARDTEST_H
//.cpp
#include "ckeyboardtest.h"
CKeyboardTest::CKeyboardTest(int argc, char **argv)
: QtService<QCoreApplication>(argc, argv, "TestService")
{
}
CKeyboardTest::~CKeyboardTest()
{
}
void CKeyboardTest::pause()
{
}
void CKeyboardTest::processCommand(int nCode)
{
}
void CKeyboardTest::resume()
{
}
void CKeyboardTest::start()
{
}
void CKeyboardTest::stop()
{
}
Error 1 error LNK2019: unresolved external symbol "public: __cdecl QtServiceBase::QtServiceBase(int,char * *,class QString const &)"
(??0QtServiceBase@@QEAA@HPEAPEADAEBVQString@@@Z) referenced in function "public: __cdecl QtService<class QCoreApplication>::QtService<class QCoreApplication>(int,char * *,
class QString const &)" (??0?$QtService@VQCoreApplication@@@@QEAA@HPEAPEADAEBVQString@@@Z)
C:\ASAM\TFS\Asam\Adams\Applications\KeyboardTest\KeyboardTest\ckeyboardtest.obj KeyboardTest
Error 2 error LNK2019: unresolved external symbol "public: virtual __cdecl QtServiceBase::~QtServiceBase(void)" (??1QtServiceBase@@UEAA@XZ)
referenced in function "public: virtual __cdecl QtService<class QCoreApplication>::~QtService<class QCoreApplication>(void)" (??1?$QtService@VQCoreApplication@@@@UEAA@XZ)
C:\ASAM\TFS\Asam\Adams\Applications\KeyboardTest\KeyboardTest\ckeyboardtest.obj KeyboardTest
Error 3 error LNK2001: unresolved external symbol "protected: virtual void __cdecl QtServiceBase::stop(void)" (?stop@QtServiceBase@@MEAAXXZ)
C:\ASAM\TFS\Asam\Adams\Applications\KeyboardTest\KeyboardTest\ckeyboardtest.obj KeyboardTest
Error 4 error LNK2001: unresolved external symbol "protected: virtual void __cdecl QtServiceBase::pause(void)" (?pause@QtServiceBase@@MEAAXXZ)
C:\ASAM\TFS\Asam\Adams\Applications\KeyboardTest\KeyboardTest\ckeyboardtest.obj KeyboardTest
Error 5 error LNK2001: unresolved external symbol "protected: virtual void __cdecl QtServiceBase::resume(void)" (?resume@QtServiceBase@@MEAAXXZ)
C:\ASAM\TFS\Asam\Adams\Applications\KeyboardTest\KeyboardTest\ckeyboardtest.obj KeyboardTest
Error 6 error LNK2001: unresolved external symbol "protected: virtual void __cdecl QtServiceBase::processCommand(int)" (?processCommand@QtServiceBase@@MEAAXH@Z)
C:\ASAM\TFS\Asam\Adams\Applications\KeyboardTest\KeyboardTest\ckeyboardtest.obj KeyboardTest
Error 7 error LNK2019: unresolved external symbol "public: int __cdecl QtServiceBase::exec(void)" (?exec@QtServiceBase@@QEAAHXZ) referenced in function main
C:\ASAM\TFS\Asam\Adams\Applications\KeyboardTest\KeyboardTest\main.obj KeyboardTest
Error 8 error LNK1120: 7 unresolved externals C:\ASAM\TFS\Asam\Adams\Applications\KeyboardTest\x64\Debug\\KeyboardTest.exe 1 1 KeyboardTest
Bookmarks