Need help on compiling GUI APP for sonic pi



  • Hello everyone. I know nothing about Qt development but if you would be so kind to help me in these bugs i'm facing...

    When I compile sonic-pi I get these warnings:

    http://pastebin.com/LeBmTbwx

    Here is the code:

    http://pastebin.com/KPJY7Ca1

    I appreciate any help.

    Thanks


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    These error are not Qt related. You main function is not declared correctly

    it

    @int main(int argc, char *argv[])
    {
    QApplication app(argc, argv);
    // your code
    return app.exec();
    }@

    The other warnings tell you that the code is fishy. You have functions that should return something but you don't return anything. The warning about "parent" says that you are using a variable named parent that you did not initialize which will lead you to crashes in your case.


Log in to reply
 

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