Solved Lots of errors in unmodified source, what's happening?
-
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.
-
Back up and running now....
-
@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? -
@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.
-
@sierdzio , I'm doing a Qt update now...deleted Qt 5.14.2 and will reinstall.
-
Good move, that might help. Also, remember to completely remove build directory to have a clean state for the new build.
-
Back up and running now....
-
Nice! Happy coding