Temporary header file '/tmp/pTFM3pv9ht/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/chardet/chardet.h" #include "/usr/include/chardet/chardet-config.h" #include "/usr/include/chardet/nsUniversalDetector.h" #include "/usr/include/chardet/version.h" #include "/usr/include/chardet/nscore.h" // add classes DetectObject* tmp_add_class_0; _G_fpos64_t* tmp_add_class_1; _G_fpos_t* tmp_add_class_2; _IO_cookie_io_functions_t* tmp_add_class_3; nsUniversalDetector* tmp_add_class_4; The GCC parameters: gcc -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w "/tmp/pTFM3pv9ht/dump1.h" -I/usr/include/chardet In file included from /tmp/pTFM3pv9ht/dump1.h:14: /usr/include/chardet/nsUniversalDetector.h:59:12: error: ‘nsresult’ does not name a type 59 | virtual nsresult HandleData(const char* aBuf, PRUint32 aLen); | ^~~~~~~~ /usr/include/chardet/nsUniversalDetector.h:66:4: error: ‘PRBool’ does not name a type; did you mean ‘bool’? 66 | PRBool mDone; | ^~~~~~ | bool /usr/include/chardet/nsUniversalDetector.h:67:4: error: ‘PRBool’ does not name a type; did you mean ‘bool’? 67 | PRBool mInTag; | ^~~~~~ | bool /usr/include/chardet/nsUniversalDetector.h:68:4: error: ‘PRBool’ does not name a type; did you mean ‘bool’? 68 | PRBool mStart; | ^~~~~~ | bool /usr/include/chardet/nsUniversalDetector.h:69:4: error: ‘PRBool’ does not name a type; did you mean ‘bool’? 69 | PRBool mGotData; | ^~~~~~ | bool /usr/include/chardet/nsUniversalDetector.h:73:4: error: ‘PRInt32’ does not name a type 73 | PRInt32 mBestGuess; | ^~~~~~~