Temporary header file '/tmp/ek2pf4lYkU/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/zdb/Connection.h" #include "/usr/include/zdb/ConnectionPool.h" #include "/usr/include/zdb/Exception.h" #include "/usr/include/zdb/PreparedStatement.h" #include "/usr/include/zdb/ResultSet.h" #include "/usr/include/zdb/SQLException.h" #include "/usr/include/zdb/URL.h" #include "/usr/include/zdb/zdb.h" // add classes Exception_Frame* tmp_add_class_0; Exception_T* tmp_add_class_1; The GCC parameters: gcc -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w "/tmp/ek2pf4lYkU/dump1.h" -I/usr/include/zdb In file included from /tmp/ek2pf4lYkU/dump1.h:12: /usr/include/zdb/Connection.h:123:1: error: ‘URL_T’ does not name a type 123 | URL_T Connection_getURL(T C); | ^~~~~ /usr/include/zdb/Connection.h:241:1: error: ‘ResultSet_T’ does not name a type 241 | ResultSet_T Connection_executeQuery(T C, const char *sql, ...) __attribute__((format (printf, 2, 3))); | ^~~~~~~~~~~ /usr/include/zdb/Connection.h:263:1: error: ‘PreparedStatement_T’ does not name a type 263 | PreparedStatement_T Connection_prepareStatement(T C, const char *sql, ...) __attribute__((format (printf, 2, 3))); | ^~~~~~~~~~~~~~~~~~~ In file included from /tmp/ek2pf4lYkU/dump1.h:13: /usr/include/zdb/ConnectionPool.h:268:22: error: ‘URL_T’ was not declared in this scope 268 | T ConnectionPool_new(URL_T url); | ^~~~~ /usr/include/zdb/ConnectionPool.h:286:1: error: ‘URL_T’ does not name a type 286 | URL_T ConnectionPool_getURL(T P); | ^~~~~ In file included from /tmp/ek2pf4lYkU/dump1.h:15: /usr/include/zdb/PreparedStatement.h:239:1: error: ‘ResultSet_T’ does not name a type 239 | ResultSet_T PreparedStatement_executeQuery(T P); | ^~~~~~~~~~~