I'm trying to put together a project using the Qt framework, and recently have been trying to integrate JACK audio. However, when adding
#include <jack/control.h>
along with any of the QtCore
files (it does it for both QCoreApplication
and QObject
), the compiler gives me an error that stops any further progress... This error comes from one of the QtCore files that usually should compile without issue.
/home/user/Qt5.13.1/5.13.1/gcc_64/include/QtCore/qobjectdefs.h:97: error: expected ',' or '...' before 'public'
# define Q_SIGNALS public QT_ANNOTATE_ACCESS_SPECIFIER(qt_signal)
^~~~~~
This seems to only happen when jack/control.h
is included. I also noticed in the file itself that signals
is used as a (seemingly irrelevant?) argument keyword. I tried changing the keyword without success.
Reversing the order of the #include
's just makes anything jack
-dependent not work. Which also seems weird to me...
Any suggestions on how to move forward with this type of issue?