Important: Please read the Qt Code of Conduct -

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

  • welcome to devnet

    There is no need to" double posting": in this forum. Therefore this post is closed.

Log in to reply