怎样在MFC工程中调用(或者说嵌入)基于QT库开发的代码?我直接把所有.cpp和.h文件加到MFC工程里面编译,也在Setting->link里面添加了QT lib 路径,但还是出一堆LINK ERROR,哪位大侠帮忙啊 :(
错误提示部分贴出来:
Linking...
videoPDlg.obj : error LNK2001: unresolved external symbol "int __cdecl qInitResources_milliphone(void)" (?qInitResources_milliphone@@YAHXZ)
codec.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall Codec::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@Codec@@UAEHW4Call@QMetaObject@@HPAPAX@Z)
codec.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall Codec::qt_metacast(char const *)" (?qt_metacast@Codec@@UAEPAXPBD@Z)
codec.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall Codec::metaObject(void)const " (?metaObject@Codec@@UBEPBUQMetaObject@@XZ)
codecchoice.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall codecChoice::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@codecChoice@@UAEHW4Call@QMetaObject@@HPAPAX@Z)
[ 此贴被lihanwuhan在2008-07-25 15:21重新编辑 ]