Temporary header file '/tmp/XcethbEOWo/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/qtmir/qtmir/displayconfigurationpolicy.h" #include "/usr/include/qtmir/qtmir/displayconfigurationstorage.h" #include "/usr/include/qtmir/qtmir/mirserverapplication.h" #include "/usr/include/qtmir/qtmir/qtmir.h" #include "/usr/include/qtmir/qtmir/screen.h" #include "/usr/include/qtmir/qtmir/screens.h" #include "/usr/include/qtmir/qtmir/sessionauthorizer.h" #include "/usr/include/qtmir/qtmir/types.h" #include "/usr/include/qtmir/qtmir/windowmanagementpolicy.h" // add namespaces namespace mir{typedef int tmp_add_type_1;} mir::tmp_add_type_1 tmp_add_func_1(){return 0;}; namespace mir{namespace geometry{typedef int tmp_add_type_2;}} mir::geometry::tmp_add_type_2 tmp_add_func_2(){return 0;}; namespace mir{namespace geometry{namespace generic{typedef int tmp_add_type_3;}}} mir::geometry::generic::tmp_add_type_3 tmp_add_func_3(){return 0;}; namespace mir{namespace graphics{typedef int tmp_add_type_4;}} mir::graphics::tmp_add_type_4 tmp_add_func_4(){return 0;}; namespace mir{namespace graphics{namespace detail{typedef int tmp_add_type_5;}}} mir::graphics::detail::tmp_add_type_5 tmp_add_func_5(){return 0;}; namespace miroil{typedef int tmp_add_type_6;} miroil::tmp_add_type_6 tmp_add_func_6(){return 0;}; namespace qtmir{typedef int tmp_add_type_7;} qtmir::tmp_add_type_7 tmp_add_func_7(){return 0;}; The GCC parameters: gcc -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w "/tmp/XcethbEOWo/dump1.h" -I/usr/include/qtmir -I/usr/include/miroil -I/usr/include/mircore -I/usr/include/miral In file included from /tmp/XcethbEOWo/dump1.h:14: /usr/include/qtmir/qtmir/mirserverapplication.h:20:10: fatal error: QtGui/QGuiApplication: No such file or directory 20 | #include | ^~~~~~~~~~~~~~~~~~~~~~~ compilation terminated.