Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Compilation error: Too few artuments in reportFinished

    General and Desktop
    qtfutureinterfa reportfinished
    2
    4
    846
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mkallay last edited by

      Adding #include<QtCore> (and nothing else Qt) to my project causes the following compilation error:
      c:\qt\4.8.0\include\qtcore../../src/corelib/concurrent/qtconcurrentrunbase.h(100): error : too few arguments in function call.

      The offending statement is
      this->reportFinished();
      What am I missing?
      Michael

      1 Reply Last reply Reply Quote 0
      • M
        mcosta last edited by

        Hi and welcome to devnet,

        where is reportFinished() defined? Wht is his signature?

        Once your problem is solved don't forget to:

        • Mark the thread as SOLVED using the Topic Tool menu
        • Vote up the answer(s) that helped you to solve the issue

        You can embed images using (http://imgur.com/) or (http://postimage.org/)

        M 1 Reply Last reply Reply Quote 0
        • M
          mkallay @mcosta last edited by

          @mcosta The reportFinished method is defined in C:\Qt\4.8.0\src\corelib\concurrent\qtfutureinterface.h with a void signature. Note that I am not using it, this is a compilation error in a different qt header file. The error goes away when I #define the macro QT_NO_CONCURRENT before including QtCore. After I get a successful build with the macro, I can get a successful build without it. This may be explained by the precompiled header. Feels like black magic...

          1 Reply Last reply Reply Quote 0
          • M
            mcosta last edited by

            Hi,

            can I see your .pro file and your code??

            Once your problem is solved don't forget to:

            • Mark the thread as SOLVED using the Topic Tool menu
            • Vote up the answer(s) that helped you to solve the issue

            You can embed images using (http://imgur.com/) or (http://postimage.org/)

            1 Reply Last reply Reply Quote 0
            • First post
              Last post