Temporary header file '/tmp/EvzOnzCpQ9/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/GL/GLwDrawA.h" #include "/usr/include/GL/GLwMDrawA.h" // add classes _XComposeStatus* tmp_add_class_0; _XEvent* tmp_add_class_1; _XExtData* tmp_add_class_2; _XIMHotKeyTrigger* tmp_add_class_3; _XIMHotKeyTriggers* tmp_add_class_4; _XIMPreeditCaretCallbackStruct* tmp_add_class_5; _XIMPreeditDrawCallbackStruct* tmp_add_class_6; _XIMPreeditStateNotifyCallbackStruct* tmp_add_class_7; _XIMStatusDrawCallbackStruct* tmp_add_class_8; _XIMStringConversionCallbackStruct* tmp_add_class_9; _XIMStringConversionText* tmp_add_class_10; _XIMText* tmp_add_class_11; _XImage* tmp_add_class_12; The GCC parameters: gcc -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w "/tmp/EvzOnzCpQ9/dump1.h" In file included from /tmp/EvzOnzCpQ9/dump1.h:12: /usr/include/GL/GLwDrawA.h:147:7: error: ‘WidgetClass’ does not name a type 147 | GLAPI WidgetClass glwDrawingAreaWidgetClass; | ^~~~~~~~~~~ /usr/include/GL/GLwDrawA.h:171:3: error: ‘Dimension’ does not name a type 171 | Dimension width,height; | ^~~~~~~~~ /usr/include/GL/GLwDrawA.h:180:12: error: variable or field ‘GLwDrawingAreaMakeCurrent’ declared void 180 | GLAPI void GLwDrawingAreaMakeCurrent(Widget w,GLXContext ctx); | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/GL/GLwDrawA.h:180:38: error: ‘Widget’ was not declared in this scope 180 | GLAPI void GLwDrawingAreaMakeCurrent(Widget w,GLXContext ctx); | ^~~~~~ /usr/include/GL/GLwDrawA.h:180:58: error: expected primary-expression before ‘ctx’ 180 | GLAPI void GLwDrawingAreaMakeCurrent(Widget w,GLXContext ctx); | ^~~ /usr/include/GL/GLwDrawA.h:181:12: error: variable or field ‘GLwDrawingAreaSwapBuffers’ declared void 181 | GLAPI void GLwDrawingAreaSwapBuffers(Widget w); | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/GL/GLwDrawA.h:181:38: error: ‘Widget’ was not declared in this scope 181 | GLAPI void GLwDrawingAreaSwapBuffers(Widget w); | ^~~~~~