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;
    QMediaContent media(QUrl::fromLocalFile("pan.wav"));
    QMediaPlayer player;

    return a.exec&#40;&#41;;

    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 :)

  • Moderators

    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.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.