Temporary header file '/tmp/yqJ9ojx4jb/dump1.h' with the following content will be compiled to create GCC translation unit dump: // add defines #define __STDC_VERSION__ 201710L #define _TIME_BITS 64 #define _FILE_OFFSET_BITS 64 #define _GXX_NULLPTR_T #define CLUTTER_ENABLE_COMPOSITOR_API 1 #define _REGEX_NELTS(n) #define _Atomic #define PACKED // add includes #include "/usr/include/X11/extensions/XTest.h" #include "/usr/include/X11/extensions/record.h" // add classes _XAnyClassinfo* tmp_add_class_0; _XAxisInfo* tmp_add_class_1; _XButtonInfo* tmp_add_class_2; _XDeviceInfo* tmp_add_class_3; _XEvent* tmp_add_class_4; _XExtData* tmp_add_class_5; _XIMHotKeyTrigger* tmp_add_class_6; _XIMHotKeyTriggers* tmp_add_class_7; _XIMPreeditCaretCallbackStruct* tmp_add_class_8; _XIMPreeditDrawCallbackStruct* tmp_add_class_9; _XIMPreeditStateNotifyCallbackStruct* tmp_add_class_10; _XIMStatusDrawCallbackStruct* tmp_add_class_11; _XIMStringConversionCallbackStruct* tmp_add_class_12; _XIMStringConversionText* tmp_add_class_13; _XIMText* tmp_add_class_14; _XImage* tmp_add_class_15; _XKeyInfo* tmp_add_class_16; _XValuatorInfo* tmp_add_class_17; The GCC parameters: gcc -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w "/tmp/yqJ9ojx4jb/dump1.h"