Temporary header file '/tmp/nzyxQoqNtQ/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/pcp/import.h" The GCC parameters: gcc -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w "/tmp/nzyxQoqNtQ/dump1.h" In file included from /tmp/nzyxQoqNtQ/dump1.h:12: /usr/include/pcp/import.h:39:48: error: ‘pmID’ has not been declared 39 | PMI_CALL extern int pmiAddMetric(const char *, pmID, int, pmInDom, int, pmUnits); | ^~~~ /usr/include/pcp/import.h:39:59: error: ‘pmInDom’ has not been declared 39 | PMI_CALL extern int pmiAddMetric(const char *, pmID, int, pmInDom, int, pmUnits); | ^~~~~~~ /usr/include/pcp/import.h:39:73: error: ‘pmUnits’ has not been declared 39 | PMI_CALL extern int pmiAddMetric(const char *, pmID, int, pmInDom, int, pmUnits); | ^~~~~~~ /usr/include/pcp/import.h:40:36: error: ‘pmInDom’ was not declared in this scope 40 | PMI_CALL extern int pmiAddInstance(pmInDom, const char *, int); | ^~~~~~~ /usr/include/pcp/import.h:40:45: error: expected primary-expression before ‘const’ 40 | PMI_CALL extern int pmiAddInstance(pmInDom, const char *, int); | ^~~~~ /usr/include/pcp/import.h:40:59: error: expected primary-expression before ‘int’ 40 | PMI_CALL extern int pmiAddInstance(pmInDom, const char *, int); | ^~~ /usr/include/pcp/import.h:45:40: error: ‘pmResult’ does not name a type 45 | PMI_CALL extern int pmiPutResult(const pmResult *); | ^~~~~~~~ /usr/include/pcp/import.h:51:17: error: ‘pmID’ does not name a type 51 | PMI_CALL extern pmID pmiID(int, int, int); | ^~~~ /usr/include/pcp/import.h:52:17: error: ‘pmID’ does not name a type 52 | PMI_CALL extern pmID pmiCluster(int, int); | ^~~~ /usr/include/pcp/import.h:53:17: error: ‘pmInDom’ does not name a type 53 | PMI_CALL extern pmInDom pmiInDom(int, int); | ^~~~~~~ /usr/include/pcp/import.h:54:17: error: ‘pmUnits’ does not name a type 54 | PMI_CALL extern pmUnits pmiUnits(int, int, int, int, int, int); | ^~~~~~~