如题,我的开发环境是qt-win-opensource-4.8.2-mingw.exe加上qt-creator-win-opensource-2.5.0.exe
我将qt静态编译后,在去编译用到phonon的代码出现:
F:\QTproject\QTdesigner\video/main.cpp:9: undefined reference to `_imp___ZN6Phonon11VideoPlayerC1EP7QWidget'
我的代码是:
#include<QApplication>
#include<phonon/VideoPlayer>
#include <QtGui>
int main(int argc,char** argv)
{
QApplication app(argc,argv);
QDialog* dialog = new QDialog;
Phonon::VideoPlayer* videoplayer = new Phonon::VideoPlayer(dialog);
dialog->show();
return app.exec();
}
但是我编译其他的程序,就不会出错,求大牛指点啊!!!!!
------解决方案--------------------
Phonon模块包含了吗