Temporary header file '/tmp/v7jdKtTBn6/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/mrtd/bac.h" #include "/usr/include/mrtd/bachelper.h" #include "/usr/include/mrtd/crypto.h" #include "/usr/include/mrtd/fileread.h" #include "/usr/include/mrtd/mrtd.h" The GCC parameters: gcc -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w "/tmp/v7jdKtTBn6/dump1.h" In file included from /tmp/v7jdKtTBn6/dump1.h:12: /usr/include/mrtd/bac.h:29:27: error: ‘nfc_device’ was not declared in this scope 29 | int mrtd_bac_keyhandshake(nfc_device *pnd, const uint8_t *kmrz, uint8_t *ksenc, uint8_t *ksmac, uint64_t *ssc_long); | ^~~~~~~~~~ /usr/include/mrtd/bac.h:29:39: error: ‘pnd’ was not declared in this scope 29 | int mrtd_bac_keyhandshake(nfc_device *pnd, const uint8_t *kmrz, uint8_t *ksenc, uint8_t *ksmac, uint64_t *ssc_long); | ^~~ /usr/include/mrtd/bac.h:29:44: error: expected primary-expression before ‘const’ 29 | int mrtd_bac_keyhandshake(nfc_device *pnd, const uint8_t *kmrz, uint8_t *ksenc, uint8_t *ksmac, uint64_t *ssc_long); | ^~~~~ /usr/include/mrtd/bac.h:29:73: error: expected primary-expression before ‘*’ token 29 | int mrtd_bac_keyhandshake(nfc_device *pnd, const uint8_t *kmrz, uint8_t *ksenc, uint8_t *ksmac, uint64_t *ssc_long); | ^ /usr/include/mrtd/bac.h:29:74: error: ‘ksenc’ was not declared in this scope 29 | int mrtd_bac_keyhandshake(nfc_device *pnd, const uint8_t *kmrz, uint8_t *ksenc, uint8_t *ksmac, uint64_t *ssc_long); | ^~~~~ /usr/include/mrtd/bac.h:29:89: error: expected primary-expression before ‘*’ token 29 | int mrtd_bac_keyhandshake(nfc_device *pnd, const uint8_t *kmrz, uint8_t *ksenc, uint8_t *ksmac, uint64_t *ssc_long); | ^ /usr/include/mrtd/bac.h:29:90: error: ‘ksmac’ was not declared in this scope 29 | int mrtd_bac_keyhandshake(nfc_device *pnd, const uint8_t *kmrz, uint8_t *ksenc, uint8_t *ksmac, uint64_t *ssc_long); | ^~~~~ /usr/include/mrtd/bac.h:29:106: error: expected primary-expression before ‘*’ token 29 | int mrtd_bac_keyhandshake(nfc_device *pnd, const uint8_t *kmrz, uint8_t *ksenc, uint8_t *ksmac, uint64_t *ssc_long); | ^ /usr/include/mrtd/bac.h:29:107: error: ‘ssc_long’ was not declared in this scope 29 | int mrtd_bac_keyhandshake(nfc_device *pnd, const uint8_t *kmrz, uint8_t *ksenc, uint8_t *ksmac, uint64_t *ssc_long); | ^~~~~~~~ In file included from /tmp/v7jdKtTBn6/dump1.h:15: /usr/include/mrtd/fileread.h:24:24: error: ‘nfc_device’ was not declared in this scope 24 | int mrtd_fileread_read(nfc_device *pnd, const uint8_t *file_index, uint8_t *output, int *outputlength, const uint8_t *ksenc, const uint8_t *ksmac, uint64_t *ssc_long); | ^~~~~~~~~~ /usr/include/mrtd/fileread.h:24:36: error: ‘pnd’ was not declared in this scope 24 | int mrtd_fileread_read(nfc_device *pnd, const uint8_t *file_index, uint8_t *output, int *outputlength, const uint8_t *ksenc, const uint8_t *ksmac, uint64_t *ssc_long); | ^~~ /usr/include/mrtd/fileread.h:24:41: error: expected primary-expression before ‘const’ 24 | int mrtd_fileread_read(nfc_device *pnd, const uint8_t *file_index, uint8_t *output, int *outputlength, const uint8_t *ksenc, const uint8_t *ksmac, uint64_t *ssc_long); | ^~~~~ /usr/include/mrtd/fileread.h:24:76: error: expected primary-expression before ‘*’ token 24 | int mrtd_fileread_read(nfc_device *pnd, const uint8_t *file_index, uint8_t *output, int *outputlength, const uint8_t *ksenc, const uint8_t *ksmac, uint64_t *ssc_long); | ^ /usr/include/mrtd/fileread.h:24:77: error: ‘output’ was not declared in this scope 24 | int mrtd_fileread_read(nfc_device *pnd, const uint8_t *file_index, uint8_t *output, int *outputlength, const uint8_t *ksenc, const uint8_t *ksmac, uint64_t *ssc_long); | ^~~~~~ /usr/include/mrtd/fileread.h:24:85: error: expected primary-expression before ‘int’ 24 | int mrtd_fileread_read(nfc_device *pnd, const uint8_t *file_index, uint8_t *output, int *outputlength, const uint8_t *ksenc, const uint8_t *ksmac, uint64_t *ssc_long); | ^~~ /usr/include/mrtd/fileread.h:24:104: error: expected primary-expression before ‘const’ 24 | int mrtd_fileread_read(nfc_device *pnd, const uint8_t *file_index, uint8_t *output, int *outputlength, const uint8_t *ksenc, const uint8_t *ksmac, uint64_t *ssc_long); | ^~~~~ /usr/include/mrtd/fileread.h:24:126: error: expected primary-expression before ‘const’ 24 | int mrtd_fileread_read(nfc_device *pnd, const uint8_t *file_index, uint8_t *output, int *outputlength, const uint8_t *ksenc, const uint8_t *ksmac, uint64_t *ssc_long); | ^~~~~ /usr/include/mrtd/fileread.h:24:157: error: expected primary-expression before ‘*’ token 24 | int mrtd_fileread_read(nfc_device *pnd, const uint8_t *file_index, uint8_t *output, int *outputlength, const uint8_t *ksenc, const uint8_t *ksmac, uint64_t *ssc_long); | ^ /usr/include/mrtd/fileread.h:24:158: error: ‘ssc_long’ was not declared in this scope 24 | int mrtd_fileread_read(nfc_device *pnd, const uint8_t *file_index, uint8_t *output, int *outputlength, const uint8_t *ksenc, const uint8_t *ksmac, uint64_t *ssc_long); | ^~~~~~~~