Temporary header file '/tmp/EuTp77FMaO/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/stdio.h" #include "/usr/include/libguytools2/toolcfg.h" #include "/usr/include/libguytools2/toolconstants.h" #include "/usr/include/libguytools2/toolerror.h" #include "/usr/include/libguytools2/toolglobalid.h" #include "/usr/include/libguytools2/toollog.h" #include "/usr/include/libguytools2/toolsignal.h" #include "/usr/include/libguytools2/toolsysinfo.h" #include "/usr/include/libguytools2/tooltypes.h" // 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; _t_ToolCfgParamDesc* tmp_add_class_3; t_Log* tmp_add_class_4; The GCC parameters: gcc -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w "/tmp/EuTp77FMaO/dump1.h" In file included from /tmp/EuTp77FMaO/dump1.h:13: /usr/include/libguytools2/toolcfg.h:75:4: error: ‘t_pcchar’ does not name a type 75 | t_pcchar pSetString; | ^~~~~~~~ /usr/include/libguytools2/toolcfg.h:76:4: error: ‘t_int’ does not name a type; did you mean ‘int’? 76 | t_int SetValue; | ^~~~~ | int /usr/include/libguytools2/toolcfg.h:81:4: error: ‘t_pcchar’ does not name a type 81 | t_pcchar pName; /* The last one in the table must have pName set to NULL */ | ^~~~~~~~ /usr/include/libguytools2/toolcfg.h:84:4: error: ‘t_int’ does not name a type; did you mean ‘int’? 84 | t_int DestLen; /* for strings, this length DOES NOT include the trailing '\0' */ | ^~~~~ | int /usr/include/libguytools2/toolcfg.h:85:4: error: ‘t_double’ does not name a type; did you mean ‘double’? 85 | t_double MinValue; | ^~~~~~~~ | double /usr/include/libguytools2/toolcfg.h:86:4: error: ‘t_double’ does not name a type; did you mean ‘double’? 86 | t_double MaxValue; | ^~~~~~~~ | double /usr/include/libguytools2/toolcfg.h:96:9: error: typedef ‘APIRET’ is initialized (use ‘decltype’ instead) 96 | typedef APIRET (* t_pToolCfgCallOnInitFn)(t_pToolCfgParamDesc pCfgParamDesc, t_pcchar *ppErrorText); | ^~~~~~ /usr/include/libguytools2/toolcfg.h:96:19: error: ‘t_pToolCfgCallOnInitFn’ was not declared in this scope 96 | typedef APIRET (* t_pToolCfgCallOnInitFn)(t_pToolCfgParamDesc pCfgParamDesc, t_pcchar *ppErrorText); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/libguytools2/toolcfg.h:101:4: error: ‘t_pToolCfgCallOnInitFn’ does not name a type 101 | t_pToolCfgCallOnInitFn pCallOnInitFn; | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/libguytools2/toolcfg.h:107:4: error: ‘t_int’ does not name a type; did you mean ‘int’? 107 | t_int CmdAssignments; | ^~~~~ | int /usr/include/libguytools2/toolcfg.h:108:4: error: ‘t_int’ does not name a type; did you mean ‘int’? 108 | t_int CfgAssignments; | ^~~~~ | int /usr/include/libguytools2/toolcfg.h:117:9: error: typedef ‘APIRET’ is initialized (use ‘decltype’ instead) 117 | typedef APIRET (* t_pTableStartFn )(t_pchar pTableName, long *pBaseAddr, t_pcchar *ppErrorText); | ^~~~~~ /usr/include/libguytools2/toolcfg.h:117:19: error: ‘t_pTableStartFn’ was not declared in this scope 117 | typedef APIRET (* t_pTableStartFn )(t_pchar pTableName, long *pBaseAddr, t_pcchar *ppErrorText); | ^~~~~~~~~~~~~~~ /usr/include/libguytools2/toolcfg.h:118:9: error: typedef ‘APIRET’ is initialized (use ‘decltype’ instead) 118 | typedef APIRET (* t_pTableSaveAndNextFn)( long *pBaseAddr, t_pcchar *ppErrorText); | ^~~~~~ /usr/include/libguytools2/toolcfg.h:118:19: error: ‘t_pTableSaveAndNextFn’ was not declared in this scope 118 | typedef APIRET (* t_pTableSaveAndNextFn)( long *pBaseAddr, t_pcchar *ppErrorText); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/libguytools2/toolcfg.h:119:9: error: typedef ‘APIRET’ is initialized (use ‘decltype’ instead) 119 | typedef APIRET (* t_pTableEndFn )( t_pcchar *ppErrorText); | ^~~~~~ /usr/include/libguytools2/toolcfg.h:119:19: error: ‘t_pTableEndFn’ was not declared in this scope 119 | typedef APIRET (* t_pTableEndFn )( t_pcchar *ppErrorText); | ^~~~~~~~~~~~~ /usr/include/libguytools2/toolcfg.h:123:4: error: ‘t_pcchar’ does not name a type 123 | t_pcchar pTableType; | ^~~~~~~~ /usr/include/libguytools2/toolcfg.h:124:4: error: ‘t_pTableStartFn’ does not name a type 124 | t_pTableStartFn pStartFn; | ^~~~~~~~~~~~~~~ /usr/include/libguytools2/toolcfg.h:125:4: error: ‘t_pTableSaveAndNextFn’ does not name a type 125 | t_pTableSaveAndNextFn pSaveAndNextFn; | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/libguytools2/toolcfg.h:126:4: error: ‘t_pTableEndFn’ does not name a type 126 | t_pTableEndFn pEndFn; | ^~~~~~~~~~~~~ /usr/include/libguytools2/toolcfg.h:132:17: error: typedef ‘t_pToolCfgUserLogFn’ is initialized (use ‘decltype’ instead) 132 | typedef void (* t_pToolCfgUserLogFn)(t_pcchar pFileName, t_pcchar pFunction, t_int LineNr, t_pcchar pFormat, va_list pArguments); | ^~~~~~~~~~~~~~~~~~~ /usr/include/libguytools2/toolcfg.h:132:38: error: ‘t_pcchar’ was not declared in this scope 132 | typedef void (* t_pToolCfgUserLogFn)(t_pcchar pFileName, t_pcchar pFunction, t_int LineNr, t_pcchar pFormat, va_list pArguments); | ^~~~~~~~ /usr/include/libguytools2/toolcfg.h:132:58: error: ‘t_pcchar’ was not declared in this scope 132 | typedef void (* t_pToolCfgUserLogFn)(t_pcchar pFileName, t_pcchar pFunction, t_int LineNr, t_pcchar pFormat, va_list pArguments); | ^~~~~~~~ /usr/include/libguytools2/toolcfg.h:132:78: error: ‘t_int’ was not declared in this scope; did you mean ‘int’? 132 | typedef void (* t_pToolCfgUserLogFn)(t_pcchar pFileName, t_pcchar pFunction, t_int LineNr, t_pcchar pFormat, va_list pArguments); | ^~~~~ | int /usr/include/libguytools2/toolcfg.h:132:92: error: ‘t_pcchar’ was not declared in this scope 132 | typedef void (* t_pToolCfgUserLogFn)(t_pcchar pFileName, t_pcchar pFunction, t_int LineNr, t_pcchar pFormat, va_list pArguments); | ^~~~~~~~ /usr/include/libguytools2/toolcfg.h:132:118: error: expected primary-expression before ‘pArguments’ 132 | typedef void (* t_pToolCfgUserLogFn)(t_pcchar pFileName, t_pcchar pFunction, t_int LineNr, t_pcchar pFormat, va_list pArguments); | ^~~~~~~~~~ /usr/include/libguytools2/toolcfg.h:146:8: error: ‘APIRET’ does not name a type 146 | EXTERN APIRET ToolCfgInit (int argc, char *argv[]); | ^~~~~~ /usr/include/libguytools2/toolcfg.h:147:8: error: ‘APIRET’ does not name a type 147 | EXTERN APIRET ToolCfgDeInit (void); | ^~~~~~ /usr/include/libguytools2/toolcfg.h:148:8: error: ‘APIRET’ does not name a type 148 | EXTERN APIRET ToolCfgUseAdjustedCommandLine (int argc, char *argv[]); | ^~~~~~ /usr/include/libguytools2/toolcfg.h:149:8: error: ‘APIRET’ does not name a type 149 | EXTERN APIRET ToolCfgSetLogFn (t_pToolCfgUserLogFn pUserLogFn); | ^~~~~~ /usr/include/libguytools2/toolcfg.h:150:8: error: ‘APIRET’ does not name a type 150 | EXTERN APIRET ToolCfgGetCmdLineOption (t_pcchar pParamName, t_pcchar *ppValue); | ^~~~~~ /usr/include/libguytools2/toolcfg.h:151:8: error: ‘APIRET’ does not name a type 151 | EXTERN APIRET ToolCfgAddGlobalSectionName (t_pcchar pSectionName); | ^~~~~~ /usr/include/libguytools2/toolcfg.h:152:8: error: ‘APIRET’ does not name a type 152 | EXTERN APIRET ToolCfgDelGlobalSectionName (t_pcchar pSectionName); | ^~~~~~ /usr/include/libguytools2/toolcfg.h:153:8: error: ‘APIRET’ does not name a type 153 | EXTERN APIRET ToolCfgScanConfiguration (t_pcchar pFileName, t_pcchar pSectionName, t_ToolCfgParamDesc *pParamDescArray, t_ToolCfgTableDesc *pTableDescArray); | ^~~~~~ /usr/include/libguytools2/toolcfg.h:154:8: error: ‘APIRET’ does not name a type 154 | EXTERN APIRET ToolCfgBuildTemplate (t_pcchar pFileName, t_pcchar pComment, t_pcchar pSectionName, t_ToolCfgParamDesc *pParamDescArray, t_ToolCfgTableDesc *pTableDescArray); | ^~~~~~ /usr/include/libguytools2/toolcfg.h:155:8: error: ‘APIRET’ does not name a type 155 | EXTERN APIRET ToolCfgLogConfiguration (t_pToolCfgParamDesc pParamDescArray); | ^~~~~~ /usr/include/libguytools2/toolcfg.h:156:8: error: ‘APIRET’ does not name a type 156 | EXTERN APIRET ToolCfgPrintParamContents (t_pToolCfgParamDesc pParamDescArray, t_pchar pName, t_pchar pBuff); | ^~~~~~ /usr/include/libguytools2/toolcfg.h:157:8: error: ‘APIRET’ does not name a type 157 | EXTERN APIRET ToolCfgGetSetString (t_pToolCfgSet pSetArray, int SetValue, const char **ppSetString); | ^~~~~~ /usr/include/libguytools2/toolcfg.h:168:14: error: ‘APIRET’ does not name a type 168 | static const APIRET TOOLCFG_ERROR_OPEN_FAILED = ERROR_BASE_TOOL_CFG + 1; | ^~~~~~ /usr/include/libguytools2/toolcfg.h:169:14: error: ‘APIRET’ does not name a type 169 | static const APIRET TOOLCFG_ERROR_READ_FAILED = ERROR_BASE_TOOL_CFG + 2; | ^~~~~~ /usr/include/libguytools2/toolcfg.h:170:14: error: ‘APIRET’ does not name a type 170 | static const APIRET TOOLCFG_ERROR_CLOSE_FAILED = ERROR_BASE_TOOL_CFG + 3; | ^~~~~~ /usr/include/libguytools2/toolcfg.h:171:14: error: ‘APIRET’ does not name a type 171 | static const APIRET TOOLCFG_ERROR_FILE_NOT_FOUND = ERROR_BASE_TOOL_CFG + 4; | ^~~~~~ /usr/include/libguytools2/toolcfg.h:172:14: error: ‘APIRET’ does not name a type 172 | static const APIRET TOOLCFG_ERROR_SEEKEND_FAILED = ERROR_BASE_TOOL_CFG + 5; | ^~~~~~ /usr/include/libguytools2/toolcfg.h:173:14: error: ‘APIRET’ does not name a type 173 | static const APIRET TOOLCFG_ERROR_SEEKSET_FAILED = ERROR_BASE_TOOL_CFG + 6; | ^~~~~~ /usr/include/libguytools2/toolcfg.h:174:14: error: ‘APIRET’ does not name a type 174 | static const APIRET TOOLCFG_ERROR_INVALID_STATE = ERROR_BASE_TOOL_CFG + 7; | ^~~~~~ /usr/include/libguytools2/toolcfg.h:175:14: error: ‘APIRET’ does not name a type 175 | static const APIRET TOOLCFG_ERROR_NAME_TOO_LONG = ERROR_BASE_TOOL_CFG + 8; | ^~~~~~ /usr/include/libguytools2/toolcfg.h:176:14: error: ‘APIRET’ does not name a type 176 | static const APIRET TOOLCFG_ERROR_INCLUDE_NESTING_OVERFLOW = ERROR_BASE_TOOL_CFG + 9; | ^~~~~~ /usr/include/libguytools2/toolcfg.h:177:14: error: ‘APIRET’ does not name a type 177 | static const APIRET TOOLCFG_ERROR_CONFIG_ERROR = ERROR_BASE_TOOL_CFG + 10; | ^~~~~~ /usr/include/libguytools2/toolcfg.h:178:14: error: ‘APIRET’ does not name a type 178 | static const APIRET TOOLCFG_ERROR_INVALID_ASSIGNMENT_OPTION = ERROR_BASE_TOOL_CFG + 11; | ^~~~~~ /usr/include/libguytools2/toolcfg.h:179:14: error: ‘APIRET’ does not name a type 179 | static const APIRET TOOLCFG_ERROR_INVALID_CFGTYPE = ERROR_BASE_TOOL_CFG + 12; | ^~~~~~ /usr/include/libguytools2/toolcfg.h:180:14: error: ‘APIRET’ does not name a type 180 | static const APIRET TOOLCFG_ERROR_TEMPLATE_OPEN_FAILED = ERROR_BASE_TOOL_CFG + 13; | ^~~~~~ /usr/include/libguytools2/toolcfg.h:181:14: error: ‘APIRET’ does not name a type 181 | static const APIRET TOOLCFG_ERROR_FPRINTF_FAILED = ERROR_BASE_TOOL_CFG + 14; | ^~~~~~ /usr/include/libguytools2/toolcfg.h:182:14: error: ‘APIRET’ does not name a type 182 | static const APIRET TOOLCFG_ERROR_CMDLINE_OPTION_NOT_FOUND = ERROR_BASE_TOOL_CFG + 15; | ^~~~~~ /usr/include/libguytools2/toolcfg.h:183:14: error: ‘APIRET’ does not name a type 183 | static const APIRET TOOLCFG_ERROR_SETBUF_FAILED = ERROR_BASE_TOOL_CFG + 16; | ^~~~~~ /usr/include/libguytools2/toolcfg.h:184:14: error: ‘APIRET’ does not name a type 184 | static const APIRET TOOLCFG_ERROR_MALLOC_FAILED = ERROR_BASE_TOOL_CFG + 17; | ^~~~~~ /usr/include/libguytools2/toolcfg.h:185:14: error: ‘APIRET’ does not name a type 185 | static const APIRET TOOLCFG_ERROR_SECTIONNAME_TOO_LONG = ERROR_BASE_TOOL_CFG + 18; | ^~~~~~ /usr/include/libguytools2/toolcfg.h:186:14: error: ‘APIRET’ does not name a type 186 | static const APIRET TOOLCFG_ERROR_TOO_MANY_SECTIONNAMES = ERROR_BASE_TOOL_CFG + 19; | ^~~~~~ /usr/include/libguytools2/toolcfg.h:187:14: error: ‘APIRET’ does not name a type 187 | static const APIRET TOOLCFG_ERROR_SECTIONNAME_NOTFOUND = ERROR_BASE_TOOL_CFG + 20; | ^~~~~~ /usr/include/libguytools2/toolcfg.h:188:14: error: ‘APIRET’ does not name a type 188 | static const APIRET TOOLCFG_ERROR_UNKNOWN_PARAMETER = ERROR_BASE_TOOL_CFG + 21; | ^~~~~~ /usr/include/libguytools2/toolcfg.h:189:14: error: ‘APIRET’ does not name a type 189 | static const APIRET TOOLCFG_ERROR_UNEXPECTED_EOL = ERROR_BASE_TOOL_CFG + 22; | ^~~~~~ In file included from /tmp/EuTp77FMaO/dump1.h:15: /usr/include/libguytools2/toolerror.h:105:37: error: ‘ERROR_BASE_TOOL_ERROR’ was not declared in this scope 105 | TOOL_ERROR_ENTRY_NOT_FOUND = ERROR_BASE_TOOL_ERROR + 1, | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/EuTp77FMaO/dump1.h:19: /usr/include/libguytools2/toolsysinfo.h:52:31: error: ‘QString’ was not declared in this scope 52 | APIRET ToolSysInfoUname (QString &Uname); | ^~~~~~~ /usr/include/libguytools2/toolsysinfo.h:52:40: error: ‘Uname’ was not declared in this scope; did you mean ‘rename’? 52 | APIRET ToolSysInfoUname (QString &Uname); | ^~~~~ | rename