QSound and error 2019
-
Hi, I got a problem when I try to use the QSound or QMediaPlayer QTCreator throws a "error LNK2019: external symbol not solved".
here's my code:
@#include "mainwindow.h"
#include <QApplication>
/#include <QtMultimedia/QMediaContent>
#include <QtMultimedia/QMediaPlayer>
#include <QUrl>/
#include <QtMultimedia/QSound>
int main(int argc, char argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
/ QMediaContent media(QUrl::fromLocalFile("pan.wav"));
QMediaPlayer player;
player.setMedia(media);
player.play();*/
QSound::play("pan.wav");return a.exec();
}
@
I put "pan.wav" in each "release" and "source" folder.
When I take out all the lines that have to deal with the sound processing it all compiles fine.
I really need a little help here. Thanks :) -
welcome to devnet
There is no need to" double posting":http://qt-project.org/forums/viewthread/24068/ in this forum. Therefore this post is closed.