Temporary header file '/tmp/5UFrip7Ge5/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/multicobex/multi_cobex.h" The GCC parameters: gcc -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w "/tmp/5UFrip7Ge5/dump1.h" In file included from /tmp/5UFrip7Ge5/dump1.h:12: /usr/include/multicobex/multi_cobex.h:34:1: error: ‘obex_ctrans_t’ does not name a type 34 | obex_ctrans_t * | ^~~~~~~~~~~~~ /usr/include/multicobex/multi_cobex.h:36:9: error: variable or field ‘cobex_free’ declared void 36 | void cobex_free (obex_ctrans_t * ctrans); | ^~~~~~~~~~ /usr/include/multicobex/multi_cobex.h:36:21: error: ‘obex_ctrans_t’ was not declared in this scope 36 | void cobex_free (obex_ctrans_t * ctrans); | ^~~~~~~~~~~~~ /usr/include/multicobex/multi_cobex.h:36:37: error: ‘ctrans’ was not declared in this scope 36 | void cobex_free (obex_ctrans_t * ctrans); | ^~~~~~ /usr/include/multicobex/multi_cobex.h:40:24: error: ‘obex_t’ was not declared in this scope 40 | int cobex_connect (obex_t *self, void *data); | ^~~~~~ /usr/include/multicobex/multi_cobex.h:40:32: error: ‘self’ was not declared in this scope 40 | int cobex_connect (obex_t *self, void *data); | ^~~~ /usr/include/multicobex/multi_cobex.h:40:38: error: expected primary-expression before ‘void’ 40 | int cobex_connect (obex_t *self, void *data); | ^~~~ /usr/include/multicobex/multi_cobex.h:41:27: error: ‘obex_t’ was not declared in this scope 41 | int cobex_disconnect (obex_t *self, void *data); | ^~~~~~ /usr/include/multicobex/multi_cobex.h:41:35: error: ‘self’ was not declared in this scope 41 | int cobex_disconnect (obex_t *self, void *data); | ^~~~ /usr/include/multicobex/multi_cobex.h:41:41: error: expected primary-expression before ‘void’ 41 | int cobex_disconnect (obex_t *self, void *data); | ^~~~ /usr/include/multicobex/multi_cobex.h:42:22: error: ‘obex_t’ was not declared in this scope 42 | int cobex_write (obex_t *self, void *data, uint8_t *buffer, int length); | ^~~~~~ /usr/include/multicobex/multi_cobex.h:42:30: error: ‘self’ was not declared in this scope 42 | int cobex_write (obex_t *self, void *data, uint8_t *buffer, int length); | ^~~~ /usr/include/multicobex/multi_cobex.h:42:36: error: expected primary-expression before ‘void’ 42 | int cobex_write (obex_t *self, void *data, uint8_t *buffer, int length); | ^~~~ /usr/include/multicobex/multi_cobex.h:42:56: error: expected primary-expression before ‘*’ token 42 | int cobex_write (obex_t *self, void *data, uint8_t *buffer, int length); | ^ /usr/include/multicobex/multi_cobex.h:42:57: error: ‘buffer’ was not declared in this scope 42 | int cobex_write (obex_t *self, void *data, uint8_t *buffer, int length); | ^~~~~~ /usr/include/multicobex/multi_cobex.h:42:65: error: expected primary-expression before ‘int’ 42 | int cobex_write (obex_t *self, void *data, uint8_t *buffer, int length); | ^~~ /usr/include/multicobex/multi_cobex.h:43:28: error: ‘obex_t’ was not declared in this scope 43 | int cobex_handleinput (obex_t *self, void *data, int timeout); | ^~~~~~ /usr/include/multicobex/multi_cobex.h:43:36: error: ‘self’ was not declared in this scope 43 | int cobex_handleinput (obex_t *self, void *data, int timeout); | ^~~~ /usr/include/multicobex/multi_cobex.h:43:42: error: expected primary-expression before ‘void’ 43 | int cobex_handleinput (obex_t *self, void *data, int timeout); | ^~~~ /usr/include/multicobex/multi_cobex.h:43:54: error: expected primary-expression before ‘int’ 43 | int cobex_handleinput (obex_t *self, void *data, int timeout); | ^~~