g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\..\Qt\4.3.3\include\QtCore" -I"..\..\..\..\Qt\4.3.3\include\QtCore" -I"..\..\..\..\Qt\4.3.3\include\QtGui" -I"..\..\..\..\Qt\4.3.3\include\QtGui" -I"..\..\..\..\Qt\4.3.3\include" -I"d:\Qt\4.3.3\include\ActiveQt" -I"release" -I"." -I"..\..\..\..\Qt\4.3.3\mkspecs\default" -o release\MyFactory.o MyFactory.cppg++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -Wl,-subsystem,console -mthreads -Wl -o release\ActiveX.exe release/main.o release/CUnknown.o release/CDispatch.o release/AxFactory.o release/MyFactory.o -L"d:\Qt\4.3.3\lib" d:/mingw/lib/libuuid.a d:/mingw/lib/libole32.a d:/mingw/lib/liboleaut32.a -lQtGui4 -lQtCore4release/AxFactory.o(.text+0x23):AxFactory.cpp: undefined reference to `vtable for AxFactory'release/AxFactory.o(.text+0xe3):AxFactory.cpp: undefined reference to `vtable for AxFactory'release/AxFactory.o(.text+0x18b):AxFactory.cpp: undefined reference to `vtable for AxFactory'release/AxFactory.o(.text+0x1ab):AxFactory.cpp: undefined reference to `vtable for AxFactory'release/AxFactory.o(.text+0x1cc):AxFactory.cpp: undefined reference to `vtable for AxFactory'release/MyFactory.o(.text+0x4e):MyFactory.cpp: undefined reference to `vtable for MyFactory'release/MyFactory.o(.text+0xae):MyFactory.cpp: undefined reference to `vtable for MyFactory'collect2: ld returned 1 exit statusmingw32-make[1]: *** [release\ActiveX.exe] Error 1mingw32-make[1]: Leaving directory `D:/projects/qt/ActiveX/src'mingw32-make: *** [release] Error 2TEMPLATE = appTARGET = ActiveXSOURCES = main.cpp \ CUnknown.cpp \ CDispatch.cpp \ AxFactory.cpp \ MyFactory.cpp \INCLUDES = main.h \ CUnknown.h \ CDispatch.h \ AxFactory.h \ MyFactory.h \CONFIG += consoleLIBS += $$[MINGWLIB]libuuid.a \ $$[MINGWLIB]libole32.a \ $$[MINGWLIB]liboleaut32.a#ifndef AXFACTORY_H_0b5fd826_1da8_40e4_b1cf_49f500245e3d#define AXFACTORY_H_0b5fd826_1da8_40e4_b1cf_49f500245e3d#include <QObject>#include <QUuid>#include <unknwn.h>class QString;class QSettings;/*!** \brief ActiveX Factory**** The AxFactory class defines a factory for the creation of COM components.** Implement this factory once in your COM server to provide information about** the components the server can create. Subclass AxFactory and implement the** pure virtual functions in any implementation file (e.g. main.cpp), and** export the factory using the AXFACTORY_EXPORT() macro.***/class AxFactory: public QObject{ Q_OBJECT