Hi all,

I created vcproject using qmake -tp vc and i opened it using Visual Studio 2005

I build it and i got sln file, In my code i am using qttest library, It's working in my system properly, If i try to build the same sln file from some other system it's showing error like,

Project : error PRJ0019: A tool returned an error code from "MOC TestExample.h"



TestExample.h is my testcase File

class TestExampleublic QObject
{
Q_OBJECT

private slots:

void initTestCase();
void init();
void test();

};

TestExample.cpp

#include "TestExample.h"

void TestExample::test()
{
QVERIFY2(1 == 1 , " Testing Failed");
}

void TestExample::initTestCase()
{
}
void TestExample::init()
{
}

From main I am calling like below,

#include<QApplication>
#include "TestExample.h"


int main(int argc, char *argv[])
{
QApplication app(argc, argv);

TestExample testExample;
QTest::qExec(&testExample,argc,argv);

}

If any one knows help me?