Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/158.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ Visual Studio 2012中使用Qt的dll问题_C++_Visual Studio_Qt_Dll_Libraries - Fatal编程技术网

C++ Visual Studio 2012中使用Qt的dll问题

C++ Visual Studio 2012中使用Qt的dll问题,c++,visual-studio,qt,dll,libraries,C++,Visual Studio,Qt,Dll,Libraries,我是一个在VisualStudio上构建东西的新手,现在我面临着这个我无法解决的小问题。我正确地安装了Qt,并在项目的“VC++目录”属性上使用了正确的路径(事实上,在我的代码中正确地看到了include)。下一步应该是在我的项目的“链接器”中放入正确的内容。。这至少是我认为问题的症结所在。无论如何,我有100个这样的错误: error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual

我是一个在VisualStudio上构建东西的新手,现在我面临着这个我无法解决的小问题。我正确地安装了Qt,并在项目的“VC++目录”属性上使用了正确的路径(事实上,在我的代码中正确地看到了include)。下一步应该是在我的项目的“链接器”中放入正确的内容。。这至少是我认为问题的症结所在。无论如何,我有100个这样的错误:

error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual     void __thiscall QObject::disconnectNotify(class QMetaMethod const &)" (__imp_?disconnectNotify@QObject@@MAEXABVQMetaMethod@@@Z) C:\Users\Henry\Desktop\PhotonMapping\PhotonMapping\main.obj PhotonMapping
error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual void __thiscall QObject::connectNotify(class QMetaMethod const &)" (__imp_?connectNotify@QObject@@MAEXABVQMetaMethod@@@Z)   C:\Users\Henry\Desktop\PhotonMapping\PhotonMapping\main.obj PhotonMapping
error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual void __thiscall QObject::customEvent(class QEvent *)" (__imp_?customEvent@QObject@@MAEXPAVQEvent@@@Z)   C:\Users\Henry\Desktop\PhotonMapping\PhotonMapping\main.obj PhotonMapping
error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual void __thiscall QObject::childEvent(class QChildEvent *)" (__imp_?childEvent@QObject@@MAEXPAVQChildEvent@@@Z)   C:\Users\Henry\Desktop\PhotonMapping\PhotonMapping\main.obj PhotonMapping
error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual void __thiscall QObject::timerEvent(class QTimerEvent *)" (__imp_?timerEvent@QObject@@MAEXPAVQTimerEvent@@@Z)   C:\Users\Henry\Desktop\PhotonMapping\PhotonMapping\main.obj PhotonMapping
error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual bool __thiscall QObject::eventFilter(class QObject *,class QEvent *)" (__imp_?eventFilter@QObject@@UAE_NPAV1@PAVQEvent@@@Z)    C:\Users\Henry\Desktop\PhotonMapping\PhotonMapping\main.obj PhotonMapping
error LNK2001: unresolved external symbol "__declspec(dllimport) double * __cdecl annAllocPt(int,double)" (__imp_?annAllocPt@@YAPANHN@Z)    C:\Users\Henry\Desktop\PhotonMapping\PhotonMapping\main.obj PhotonMapping
error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual int __thiscall QImage::metric(enum QPaintDevice::PaintDeviceMetric)const " (__imp_?metric@QImage@@MBEHW4PaintDeviceMetric@QPaintDevice@@@Z) C:\Users\Henry\Desktop\PhotonMapping\PhotonMapping\main.obj PhotonMapping
error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual class QPaintEngine * __thiscall QImage::paintEngine(void)const " (__imp_?paintEngine@QImage@@UBEPAVQPaintEngine@@XZ)   C:\Users\Henry\Desktop\PhotonMapping\PhotonMapping\main.obj PhotonMapping
error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall QImage::setPixel(int,int,unsigned int)" (__imp_?setPixel@QImage@@QAEXHHI@Z)    C:\Users\Henry\Desktop\PhotonMapping\PhotonMapping\main.obj PhotonMapping
error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual int __thiscall QImage::devType(void)const " (__imp_?devType@QImage@@UBEHXZ)    C:\Users\Henry\Desktop\PhotonMapping\PhotonMapping\main.obj PhotonMapping
error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall QImage::~QImage(void)" (__imp_??1QImage@@UAE@XZ)    C:\Users\Henry\Desktop\PhotonMapping\PhotonMapping\main.obj PhotonMapping
error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall QImage::QImage(int,int,enum QImage::Format)" (__imp_??0QImage@@QAE@HHW4Format@0@@Z) C:\Users\Henry\Desktop\PhotonMapping\PhotonMapping\main.obj PhotonMapping
error LNK2001: unresolved external symbol "__declspec(dllimport) double * * __cdecl annAllocPts(int,int)" (__imp_?annAllocPts@@YAPAPANHH@Z) C:\Users\Henry\Desktop\PhotonMapping\PhotonMapping\main.obj PhotonMapping
error LNK2001: unresolved external symbol "__declspec(dllimport) public: static int __cdecl QApplication::exec(void)" (__imp_?exec@QApplication@@SAHXZ) C:\Users\Henry\Desktop\PhotonMapping\PhotonMapping\main.obj PhotonMapping
error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall QApplication::~QApplication(void)" (__imp_??1QApplication@@UAE@XZ)  C:\Users\Henry\Desktop\PhotonMapping\PhotonMapping\main.obj PhotonMapping
error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall QApplication::QApplication(int &,char * *,int)" (__imp_??0QApplication@@QAE@AAHPAPADH@Z)    C:\Users\Henry\Desktop\PhotonMapping\PhotonMapping\main.obj PhotonMapping
我知道这个问题很愚蠢,但我想理解它。。以这样的方式学习如何解决它,下次我要面对它。提前谢谢


Enrico

首先:它是Qt(Q工具包),而不是Qt(快速时间)。第二,你为什么不增加图书馆?第三,你正在使用VS Qt插件吗?谢谢你的建议,并为我的错误感到抱歉。我不知道应该添加哪些库。我想说,把它们全部加起来是不好的。。也许这是常见的方式,但正如我所说:我是一个新手。我认为有一种特定的方法可以根据上述错误知道应该添加哪些库。我错了吗?无论如何,我没有使用VS Qt插件。