Temporary header file '/tmp/l9f_5XLxlh/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/gocr/amiga.h" #include "/usr/include/gocr/barcode.h" #include "/usr/include/gocr/config.h" #include "/usr/include/gocr/gocr.h" #include "/usr/include/gocr/list.h" #include "/usr/include/gocr/ocr0.h" #include "/usr/include/gocr/ocr0_dbg.h" #include "/usr/include/gocr/ocr1.h" #include "/usr/include/gocr/otsu.h" #include "/usr/include/gocr/output.h" #include "/usr/include/gocr/pcx.h" #include "/usr/include/gocr/pgm2asc.h" #include "/usr/include/gocr/pnm.h" #include "/usr/include/gocr/progress.h" #include "/usr/include/gocr/tga.h" #include "/usr/include/gocr/unicode.h" #include "/usr/include/gocr/unicode_defs.h" #include "/usr/include/gocr/version.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; box* tmp_add_class_3; itimerval* tmp_add_class_4; job_s* tmp_add_class_5; list_holes* tmp_add_class_6; ocr0_shared* tmp_add_class_7; ocr_element* tmp_add_class_8; ocr_object_list* tmp_add_class_9; path* tmp_add_class_10; pixmap* tmp_add_class_11; progress_counter* tmp_add_class_12; tlines* tmp_add_class_13; The GCC parameters: gcc -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w "/tmp/l9f_5XLxlh/dump1.h" In file included from /tmp/l9f_5XLxlh/dump1.h:13: /usr/include/gocr/barcode.h:9:20: error: ‘job_t’ was not declared in this scope 9 | int detect_barcode(job_t *job); | ^~~~~ /usr/include/gocr/barcode.h:9:27: error: ‘job’ was not declared in this scope 9 | int detect_barcode(job_t *job); | ^~~