Temporary header file '/tmp/kryHf1buc_/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 #define getaddrinfo_a(a,b,c,d) // add includes #include "/usr/include/evdevPlus/CommonIncludes.hpp" #include "/usr/include/evdevPlus/InputEvent.hpp" #include "/usr/include/evdevPlus/evdevPlus.hpp" // add namespaces namespace evdevPlus{typedef int tmp_add_type_1;} evdevPlus::tmp_add_type_1 tmp_add_func_1(){return 0;}; // add classes _G_fpos64_t* tmp_add_class_0; _G_fpos_t* tmp_add_class_1; _IO_cookie_io_functions_t* tmp_add_class_2; f_owner_ex* tmp_add_class_3; ff_condition_effect* tmp_add_class_4; ff_constant_effect* tmp_add_class_5; ff_effect* tmp_add_class_6; ff_envelope* tmp_add_class_7; ff_periodic_effect* tmp_add_class_8; ff_ramp_effect* tmp_add_class_9; ff_replay* tmp_add_class_10; ff_rumble_effect* tmp_add_class_11; ff_trigger* tmp_add_class_12; file_handle* tmp_add_class_13; flock64* tmp_add_class_14; input_absinfo* tmp_add_class_15; input_event* tmp_add_class_16; input_id* tmp_add_class_17; input_keymap_entry* tmp_add_class_18; input_mask* tmp_add_class_19; iovec* tmp_add_class_20; itimerval* tmp_add_class_21; termio* tmp_add_class_22; uinput_abs_setup* tmp_add_class_23; uinput_ff_erase* tmp_add_class_24; uinput_ff_upload* tmp_add_class_25; uinput_setup* tmp_add_class_26; uinput_user_dev* tmp_add_class_27; winsize* tmp_add_class_28; The GCC parameters: gcc -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w "/tmp/kryHf1buc_/dump1.h" In file included from /tmp/kryHf1buc_/dump1.h:15: /usr/include/evdevPlus/InputEvent.hpp:23:39: error: ‘struct input_event’ has no member named ‘time’ 23 | timeval &Time = event.time; | ^~~~ /usr/include/evdevPlus/InputEvent.hpp: In constructor ‘evdevPlus::InputEvent::InputEvent(uint16_t, uint16_t, uint16_t, timeval*)’: /usr/include/evdevPlus/InputEvent.hpp:40:47: error: ‘struct input_event’ has no member named ‘time’ 40 | memcpy(&event.time, time, sizeof(timeval)); | ^~~~