Temporary header file '/tmp/Z4POIAtpKc/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/stdlib.h" #include "/usr/include/libcob/cobgetopt.h" #include "/usr/include/libcob/common.h" #include "/usr/include/libcob.h" // add classes cob_call_struct* tmp_add_class_0; cob_fileio_funcs* tmp_add_class_1; cob_frame* tmp_add_class_2; cob_func_loc* tmp_add_class_3; cob_time* tmp_add_class_4; cobjmp_buf* tmp_add_class_5; option* tmp_add_class_6; The GCC parameters: gcc -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w "/tmp/Z4POIAtpKc/dump1.h" In file included from /tmp/Z4POIAtpKc/dump1.h:13: /usr/include/libcob/cobgetopt.h:34:1: error: ‘COB_EXPIMP’ does not name a type 34 | COB_EXPIMP char *cob_optarg; | ^~~~~~~~~~ /usr/include/libcob/cobgetopt.h:34:1: note: the macro ‘COB_EXPIMP’ had not yet been defined In file included from /tmp/Z4POIAtpKc/dump1.h:14: /usr/include/libcob/common.h:420: note: it was later defined here 420 | #define COB_EXPIMP COB_EXT_IMPORT | /usr/include/libcob/cobgetopt.h:48:1: error: ‘COB_EXPIMP’ does not name a type 48 | COB_EXPIMP int cob_optind; | ^~~~~~~~~~ /usr/include/libcob/cobgetopt.h:48:1: note: the macro ‘COB_EXPIMP’ had not yet been defined /usr/include/libcob/common.h:420: note: it was later defined here 420 | #define COB_EXPIMP COB_EXT_IMPORT | /usr/include/libcob/cobgetopt.h:53:1: error: ‘COB_EXPIMP’ does not name a type 53 | COB_EXPIMP int cob_opterr; | ^~~~~~~~~~ /usr/include/libcob/cobgetopt.h:53:1: note: the macro ‘COB_EXPIMP’ had not yet been defined /usr/include/libcob/common.h:420: note: it was later defined here 420 | #define COB_EXPIMP COB_EXT_IMPORT | /usr/include/libcob/cobgetopt.h:57:1: error: ‘COB_EXPIMP’ does not name a type 57 | COB_EXPIMP int cob_optopt; | ^~~~~~~~~~ /usr/include/libcob/cobgetopt.h:57:1: note: the macro ‘COB_EXPIMP’ had not yet been defined /usr/include/libcob/common.h:420: note: it was later defined here 420 | #define COB_EXPIMP COB_EXT_IMPORT | /usr/include/libcob/cobgetopt.h:120:1: error: ‘COB_EXPIMP’ does not name a type 120 | COB_EXPIMP int cob_getopt_long_long (const int, char *const *, const char *, | ^~~~~~~~~~ /usr/include/libcob/cobgetopt.h:120:1: note: the macro ‘COB_EXPIMP’ had not yet been defined /usr/include/libcob/common.h:420: note: it was later defined here 420 | #define COB_EXPIMP COB_EXT_IMPORT |