Temporary header file '/tmp/CWgsoH2WFJ/dump1.h' with the following content will be compiled to create GCC translation unit dump: // add defines #define __STDC_VERSION__ 201710L #define _GXX_NULLPTR_T #define CLUTTER_ENABLE_COMPOSITOR_API 1 #define _REGEX_NELTS(n) #define _Atomic #define PACKED #define getaddrinfo_a(a,b,c,d) // add includes #include "/usr/include/unity/Exception.h" #include "/usr/include/unity/SymbolExport.h" #include "/usr/include/unity/UnityExceptions.h" #include "/usr/include/unity/api/Version.h" #include "/usr/include/unity/shell/application/ApplicationInfoInterface.h" #include "/usr/include/unity/shell/application/ApplicationManagerInterface.h" #include "/usr/include/unity/shell/application/Mir.h" #include "/usr/include/unity/shell/application/MirMousePointerInterface.h" #include "/usr/include/unity/shell/application/MirPlatformCursor.h" #include "/usr/include/unity/shell/application/MirSurfaceInterface.h" #include "/usr/include/unity/shell/application/MirSurfaceItemInterface.h" #include "/usr/include/unity/shell/application/MirSurfaceListInterface.h" #include "/usr/include/unity/shell/application/SurfaceManagerInterface.h" #include "/usr/include/unity/shell/launcher/AppDrawerModelInterface.h" #include "/usr/include/unity/shell/launcher/LauncherItemInterface.h" #include "/usr/include/unity/shell/launcher/LauncherModelInterface.h" #include "/usr/include/unity/shell/launcher/QuickListModelInterface.h" #include "/usr/include/unity/shell/notifications/Enums.h" #include "/usr/include/unity/shell/notifications/ModelInterface.h" #include "/usr/include/unity/shell/notifications/NotificationInterface.h" #include "/usr/include/unity/shell/notifications/SourceInterface.h" #include "/usr/include/unity/shell/scopes/CategoriesInterface.h" #include "/usr/include/unity/shell/scopes/ExpandableFilterWidgetInterface.h" #include "/usr/include/unity/shell/scopes/FilterBaseInterface.h" #include "/usr/include/unity/shell/scopes/FiltersInterface.h" #include "/usr/include/unity/shell/scopes/NavigationInterface.h" #include "/usr/include/unity/shell/scopes/OptionSelectorFilterInterface.h" #include "/usr/include/unity/shell/scopes/OptionSelectorOptionsInterface.h" #include "/usr/include/unity/shell/scopes/PreviewModelInterface.h" #include "/usr/include/unity/shell/scopes/PreviewWidgetModelInterface.h" #include "/usr/include/unity/shell/scopes/RangeInputFilterInterface.h" #include "/usr/include/unity/shell/scopes/ResultsModelInterface.h" #include "/usr/include/unity/shell/scopes/ScopeInterface.h" #include "/usr/include/unity/shell/scopes/ScopesInterface.h" #include "/usr/include/unity/shell/scopes/SettingsModelInterface.h" #include "/usr/include/unity/shell/scopes/ValueSliderFilterInterface.h" #include "/usr/include/unity/shell/scopes/ValueSliderValuesInterface.h" #include "/usr/include/unity/util/Daemon.h" #include "/usr/include/unity/util/DefinesPtrs.h" #include "/usr/include/unity/util/FileIO.h" #include "/usr/include/unity/util/GObjectMemory.h" #include "/usr/include/unity/util/GioMemory.h" #include "/usr/include/unity/util/GlibMemory.h" #include "/usr/include/unity/util/IniParser.h" #include "/usr/include/unity/util/NonCopyable.h" #include "/usr/include/unity/util/ResourcePtr.h" #include "/usr/include/unity/util/SnapPath.h" // add namespaces namespace unity{typedef int tmp_add_type_1;} unity::tmp_add_type_1 tmp_add_func_1(){return 0;}; namespace unity{namespace api{typedef int tmp_add_type_2;}} unity::api::tmp_add_type_2 tmp_add_func_2(){return 0;}; The GCC parameters: gcc -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w "/tmp/CWgsoH2WFJ/dump1.h" In file included from /tmp/CWgsoH2WFJ/dump1.h:16: /usr/include/unity/shell/application/ApplicationInfoInterface.h:22:10: fatal error: QtCore/QObject: No such file or directory 22 | #include | ^~~~~~~~~~~~~~~~ compilation terminated.