Temporary header file '/tmp/bU33sZiYtU/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/ghmm/cfbgibbs.h" #include "/usr/include/ghmm/cluster.h" #include "/usr/include/ghmm/discrime.h" #include "/usr/include/ghmm/fbgibbs.h" #include "/usr/include/ghmm/foba.h" #include "/usr/include/ghmm/ghmm.h" #include "/usr/include/ghmm/ghmmconfig.h" #include "/usr/include/ghmm/gradescent.h" #include "/usr/include/ghmm/kbest.h" #include "/usr/include/ghmm/model.h" #include "/usr/include/ghmm/obsolete.h" #include "/usr/include/ghmm/pmodel.h" #include "/usr/include/ghmm/psequence.h" #include "/usr/include/ghmm/pviterbi.h" #include "/usr/include/ghmm/pviterbi_propagate.h" #include "/usr/include/ghmm/reestimate.h" #include "/usr/include/ghmm/rng.h" #include "/usr/include/ghmm/scanner.h" #include "/usr/include/ghmm/scluster.h" #include "/usr/include/ghmm/sdfoba.h" #include "/usr/include/ghmm/sdmodel.h" #include "/usr/include/ghmm/sequence.h" #include "/usr/include/ghmm/sfoba.h" #include "/usr/include/ghmm/sgenerate.h" #include "/usr/include/ghmm/smap_classify.h" #include "/usr/include/ghmm/smixturehmm.h" #include "/usr/include/ghmm/smodel.h" #include "/usr/include/ghmm/sreestimate.h" #include "/usr/include/ghmm/sviterbi.h" #include "/usr/include/ghmm/unsupported.h" #include "/usr/include/ghmm/viterbi.h" #include "/usr/include/ghmm/xmlreader.h" #include "/usr/include/ghmm/xmlwriter.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; ghmm_c_emission* tmp_add_class_3; ghmm_cmodel* tmp_add_class_4; ghmm_cmodel_class_change_context* tmp_add_class_5; ghmm_cseq* tmp_add_class_6; ghmm_cstate* tmp_add_class_7; ghmm_dpmodel* tmp_add_class_8; ghmm_dpmodel_class_change_context* tmp_add_class_9; ghmm_dpseq* tmp_add_class_10; ghmm_dpstate* tmp_add_class_11; ghmm_dseq* tmp_add_class_12; ghmm_dsmodel* tmp_add_class_13; ghmm_dsstate* tmp_add_class_14; ghmm_xmlfile* tmp_add_class_15; The GCC parameters: gcc -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w "/tmp/bU33sZiYtU/dump1.h" In file included from /tmp/bU33sZiYtU/dump1.h:31: /usr/include/ghmm/sdfoba.h:46:27: error: ‘ghmm_dsmodel’ was not declared in this scope; did you mean ‘ghmm_dpmodel’? 46 | int ghmm_dsmodel_forward (ghmm_dsmodel * mo, const int *O, int len, double **alpha, | ^~~~~~~~~~~~ | ghmm_dpmodel /usr/include/ghmm/sdfoba.h:46:42: error: ‘mo’ was not declared in this scope 46 | int ghmm_dsmodel_forward (ghmm_dsmodel * mo, const int *O, int len, double **alpha, | ^~ /usr/include/ghmm/sdfoba.h:46:46: error: expected primary-expression before ‘const’ 46 | int ghmm_dsmodel_forward (ghmm_dsmodel * mo, const int *O, int len, double **alpha, | ^~~~~ /usr/include/ghmm/sdfoba.h:46:60: error: expected primary-expression before ‘int’ 46 | int ghmm_dsmodel_forward (ghmm_dsmodel * mo, const int *O, int len, double **alpha, | ^~~ /usr/include/ghmm/sdfoba.h:46:69: error: expected primary-expression before ‘double’ 46 | int ghmm_dsmodel_forward (ghmm_dsmodel * mo, const int *O, int len, double **alpha, | ^~~~~~ /usr/include/ghmm/sdfoba.h:47:21: error: expected primary-expression before ‘double’ 47 | double *scale, double *log_p); | ^~~~~~ /usr/include/ghmm/sdfoba.h:47:36: error: expected primary-expression before ‘double’ 47 | double *scale, double *log_p); | ^~~~~~ /usr/include/ghmm/sdfoba.h:49:28: error: ‘ghmm_dsmodel’ was not declared in this scope; did you mean ‘ghmm_dpmodel’? 49 | int ghmm_dsmodel_backward (ghmm_dsmodel * mo, const int *O, int len, double **beta, | ^~~~~~~~~~~~ | ghmm_dpmodel /usr/include/ghmm/sdfoba.h:49:43: error: ‘mo’ was not declared in this scope 49 | int ghmm_dsmodel_backward (ghmm_dsmodel * mo, const int *O, int len, double **beta, | ^~ /usr/include/ghmm/sdfoba.h:49:47: error: expected primary-expression before ‘const’ 49 | int ghmm_dsmodel_backward (ghmm_dsmodel * mo, const int *O, int len, double **beta, | ^~~~~ /usr/include/ghmm/sdfoba.h:49:61: error: expected primary-expression before ‘int’ 49 | int ghmm_dsmodel_backward (ghmm_dsmodel * mo, const int *O, int len, double **beta, | ^~~ /usr/include/ghmm/sdfoba.h:49:70: error: expected primary-expression before ‘double’ 49 | int ghmm_dsmodel_backward (ghmm_dsmodel * mo, const int *O, int len, double **beta, | ^~~~~~ /usr/include/ghmm/sdfoba.h:50:22: error: expected primary-expression before ‘const’ 50 | const double *scale); | ^~~~~ /usr/include/ghmm/sdfoba.h:52:24: error: ‘ghmm_dsmodel’ was not declared in this scope; did you mean ‘ghmm_dpmodel’? 52 | int ghmm_dsmodel_logp (ghmm_dsmodel * mo, const int *O, int len, double *log_p); | ^~~~~~~~~~~~ | ghmm_dpmodel /usr/include/ghmm/sdfoba.h:52:39: error: ‘mo’ was not declared in this scope 52 | int ghmm_dsmodel_logp (ghmm_dsmodel * mo, const int *O, int len, double *log_p); | ^~ /usr/include/ghmm/sdfoba.h:52:43: error: expected primary-expression before ‘const’ 52 | int ghmm_dsmodel_logp (ghmm_dsmodel * mo, const int *O, int len, double *log_p); | ^~~~~ /usr/include/ghmm/sdfoba.h:52:57: error: expected primary-expression before ‘int’ 52 | int ghmm_dsmodel_logp (ghmm_dsmodel * mo, const int *O, int len, double *log_p); | ^~~ /usr/include/ghmm/sdfoba.h:52:66: error: expected primary-expression before ‘double’ 52 | int ghmm_dsmodel_logp (ghmm_dsmodel * mo, const int *O, int len, double *log_p); | ^~~~~~ In file included from /tmp/bU33sZiYtU/dump1.h:32: /usr/include/ghmm/sdmodel.h:323:73: error: ‘int ghmm_dsmodel_forward(ghmm_dsmodel*, const int*, int, double**, double*, double*)’ redeclared as different kind of entity 323 | double **alpha, double *scale, double *log_p); | ^ /usr/include/ghmm/sdfoba.h:46:5: note: previous declaration ‘int ghmm_dsmodel_forward’ 46 | int ghmm_dsmodel_forward (ghmm_dsmodel * mo, const int *O, int len, double **alpha, | ^~~~~~~~~~~~~~~~~~~~