Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Compilation error: Too few artuments in reportFinished

Compilation error: Too few artuments in reportFinished

Scheduled Pinned Locked Moved General and Desktop
qtfutureinterfareportfinished
4 Posts 2 Posters 1.0k Views
  • 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 Offline
    M Offline
    mkallay
    wrote on last edited by
    #1

    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
    0
    • M Offline
      M Offline
      mcosta
      wrote on last edited by
      #2

      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
      0
      • M mcosta

        Hi and welcome to devnet,

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

        M Offline
        M Offline
        mkallay
        wrote on last edited by
        #3

        @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
        0
        • M Offline
          M Offline
          mcosta
          wrote on last edited by
          #4

          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
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved