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. Lots of errors in unmodified source, what's happening?
Forum Updated to NodeBB v4.3 + New Features

Lots of errors in unmodified source, what's happening?

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 2 Posters 461 Views 2 Watching
  • 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.
  • SPlattenS Offline
    SPlattenS Offline
    SPlatten
    wrote on last edited by SPlatten
    #1

    This morning I have rebuilt a project that has had no issues and now I'm getting lots of errors which I cannot explain:

    In file included from ../clsQtSlider.cpp:7:
    In file included from ../../XMLMPAM/clsQtSlider.h:45:
    In file included from ../../XMLMPAM/clsMainWnd.h:286:
    In file included from ../../Qt/5.14.2/clang_64/lib/QtWidgets.framework/Headers/QCheckBox:1:
    In file included from ../../Qt/5.14.2/clang_64/lib/QtWidgets.framework/Headers/qcheckbox.h:44:
    In file included from ../../Qt/5.14.2/clang_64/lib/QtWidgets.framework/Headers/qabstractbutton.h:44:
    In file included from ../../Qt/5.14.2/clang_64/lib/QtGui.framework/Headers/qicon.h:46:
    In file included from ../../Qt/5.14.2/clang_64/lib/QtGui.framework/Headers/qpixmap.h:44:
    In file included from ../../Qt/5.14.2/clang_64/lib/QtGui.framework/Headers/qpaintdevice.h:44:
    In file included from ../../Qt/5.14.2/clang_64/lib/QtGui.framework/Headers/qwindowdefs.h:44:
    In file included from ../../Qt/5.14.2/clang_64/lib/QtCore.framework/Headers/qobjectdefs.h:50:
    /Users/simonplatten/Qt/5.14.2/clang_64/lib/QtCore.framework/Headers/qobjectdefs_impl.h:152:13: error: called object type 'int' is not a function or function pointer
                1(o->*f)((*reinterpret_cast<typename RemoveRef<SignalArgs>::Type *>(arg[II+1]))...), ApplyReturnValue<R>(arg[0]);
    

    What could explain this?

    The backup I made of the source code yesterday which yesterday was building and even earlier this morning was working, now unzipped, does not compile and has the same errors....I've rebooted my system, same issue...why?

    If I change the kit to 5.15, it compiles, if I change back to 5.14 if has the errors...I don't understand how this has broken.

    Kind Regards,
    Sy

    1 Reply Last reply
    0
    • SPlattenS Offline
      SPlattenS Offline
      SPlatten
      wrote on last edited by
      #6

      Back up and running now....

      Kind Regards,
      Sy

      1 Reply Last reply
      1
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #2

        @SPlatten said in Lots of errors in unmodified source, what's happening?:

        /clsQtSlider.cpp:7:

        What's at line 7 in that file?
        Did you update your compiler in the meantime?

        (Z(:^

        SPlattenS 2 Replies Last reply
        1
        • sierdzioS sierdzio

          @SPlatten said in Lots of errors in unmodified source, what's happening?:

          /clsQtSlider.cpp:7:

          What's at line 7 in that file?
          Did you update your compiler in the meantime?

          SPlattenS Offline
          SPlattenS Offline
          SPlatten
          wrote on last edited by
          #3

          @sierdzio , starting at the top is just shows where headers are included until you get to the bottom where the actually error is, so in the case of my file:

          clsQtSlider.cpp

          /**
           * File:    clsQtSlider.cpp
           * Notes:   Contains implementation of the overriden signal/slot
           *          helper class for the QSlider control
           * History: 2020/08/18 Created by Simon Platten
           */
          #include <clsQtSlider.h> //This is line 7
          

          clsQtSlider.h

          /**
           * File:    clsQtSlider.h
           * Notes:   This file contains the prototype for the clsQtSlider class.
           * This class overrides the Qt control class QSlider and provides additional
           * functionality for signal and slot management.
           *******************************************************************************
           * Class:   clsQtSlider
           *
           * Statics:
           *
           * Static Methods:
           *  blnValidSignal          Returns true if the signal is valid else false
           *  pmpGetSignals           Get pointer to map of signals
           *
           * Static Members:
           *  mscszQtSignalActionTriggered    Native Qt signal for actionTriggered
           *  mscszQtSignalRangeChanged       Native Qt signal for ranceChanged
           *  mscszQtSignalSliderMoved        Native Qt signal for sliderMoved
           *  mscszQtSignalSliderPressed      Native Qt signal for sliderPressed
           *  mscszQtSignalSliderReleased     Native Qt signal for sliderReleased
           *  mscszQtSignalSliderValueChanged Native Qt signal for valueChanged
           *  mscmpSignals            Map of slider signals
           *
           * Methods:
           *  clsQtSlider             Class constructor
           *  connect                 Connects signal and slot
           *  dblScaleValue           Produces scaled value
           *
           * Members:
           *  mblnFirstValue          Flag to indicate first change
           *  meType                  Type of slider
           *  mintLastValue           Last slider value
           *  mpobjNode               XML node
           *
           * Signals:
           *
           * Slots:
           *  rptr...                 These slots are repeaters for internal signals
           *******************************************************************************
           * History: 2020/08/18 Created by Simon Platten
           */
          #ifndef CLSQTSLIDER_H
              #define CLSQTSLIDER_H
          
              #include <clsMainWnd.h> //This is line 45
          

          clsMainWnd.h

          #ifndef CLSMAINWND_H
              #define CLSMAINWND_H
          
              #include <QtGlobal>
              #include <QCheckBox> //This is line 286
          

          The rest are Qt files.

          Kind Regards,
          Sy

          1 Reply Last reply
          0
          • sierdzioS sierdzio

            @SPlatten said in Lots of errors in unmodified source, what's happening?:

            /clsQtSlider.cpp:7:

            What's at line 7 in that file?
            Did you update your compiler in the meantime?

            SPlattenS Offline
            SPlattenS Offline
            SPlatten
            wrote on last edited by
            #4

            @sierdzio , I'm doing a Qt update now...deleted Qt 5.14.2 and will reinstall.

            Kind Regards,
            Sy

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #5

              Good move, that might help. Also, remember to completely remove build directory to have a clean state for the new build.

              (Z(:^

              1 Reply Last reply
              0
              • SPlattenS Offline
                SPlattenS Offline
                SPlatten
                wrote on last edited by
                #6

                Back up and running now....

                Kind Regards,
                Sy

                1 Reply Last reply
                1
                • sierdzioS Offline
                  sierdzioS Offline
                  sierdzio
                  Moderators
                  wrote on last edited by
                  #7

                  Nice! Happy coding

                  (Z(:^

                  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