Temporary header file '/tmp/F3u_YZYHEn/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/jama/jama_cholesky.h" #include "/usr/include/jama/jama_eig.h" #include "/usr/include/jama/jama_lu.h" #include "/usr/include/jama/jama_qr.h" #include "/usr/include/jama/jama_svd.h" // add namespaces namespace JAMA{typedef int tmp_add_type_1;} JAMA::tmp_add_type_1 tmp_add_func_1(){return 0;}; namespace TNT{typedef int tmp_add_type_2;} TNT::tmp_add_type_2 tmp_add_func_2(){return 0;}; // 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; The GCC parameters: gcc -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w "/tmp/F3u_YZYHEn/dump1.h" In file included from /tmp/F3u_YZYHEn/dump1.h:12: /usr/include/jama/jama_cholesky.h:11:17: error: ‘TNT’ is not a namespace-name 11 | using namespace TNT; | ^~~ /usr/include/jama/jama_cholesky.h:49:9: error: ‘Array2D’ does not name a type 49 | Array2D L_; // lower triangular factor | ^~~~~~~ /usr/include/jama/jama_cholesky.h:55:24: error: ‘Array2D’ does not name a type 55 | Cholesky(const Array2D &A); | ^~~~~~~ /usr/include/jama/jama_cholesky.h:55:31: error: expected ‘,’ or ‘...’ before ‘<’ token 55 | Cholesky(const Array2D &A); | ^ /usr/include/jama/jama_cholesky.h:56:9: error: ‘Array2D’ does not name a type 56 | Array2D getL() const; | ^~~~~~~ /usr/include/jama/jama_cholesky.h:57:9: error: ‘Array1D’ does not name a type 57 | Array1D solve(const Array1D &B); | ^~~~~~~ /usr/include/jama/jama_cholesky.h:58:9: error: ‘Array2D’ does not name a type 58 | Array2D solve(const Array2D &B); | ^~~~~~~ /usr/include/jama/jama_cholesky.h: In constructor ‘JAMA::Cholesky::Cholesky()’: /usr/include/jama/jama_cholesky.h:64:30: error: class ‘JAMA::Cholesky’ does not have any field named ‘L_’ 64 | Cholesky::Cholesky() : L_(0,0), isspd(0) {} | ^~ /usr/include/jama/jama_cholesky.h: At global scope: /usr/include/jama/jama_cholesky.h:80:1: error: ‘Array2D’ does not name a type 80 | Array2D Cholesky::getL() const | ^~~~~~~ /usr/include/jama/jama_cholesky.h:92:32: error: ‘Array2D’ does not name a type 92 | Cholesky::Cholesky(const Array2D &A) | ^~~~~~~ /usr/include/jama/jama_cholesky.h:92:39: error: expected ‘,’ or ‘...’ before ‘<’ token 92 | Cholesky::Cholesky(const Array2D &A) | ^ /usr/include/jama/jama_cholesky.h: In constructor ‘JAMA::Cholesky::Cholesky(int)’: /usr/include/jama/jama_cholesky.h:96:17: error: ‘A’ was not declared in this scope 96 | int m = A.dim1(); | ^ /usr/include/jama/jama_cholesky.h:103:17: error: ‘L_’ was not declared in this scope 103 | L_ = Array2D(0,0); | ^~ /usr/include/jama/jama_cholesky.h:103:22: error: ‘Array2D’ was not declared in this scope 103 | L_ = Array2D(0,0); | ^~~~~~~ /usr/include/jama/jama_cholesky.h:103:34: error: expected primary-expression before ‘>’ token 103 | L_ = Array2D(0,0); | ^ /usr/include/jama/jama_cholesky.h:107:9: error: ‘L_’ was not declared in this scope 107 | L_ = Array2D(n,n); | ^~ /usr/include/jama/jama_cholesky.h:107:14: error: ‘Array2D’ was not declared in this scope 107 | L_ = Array2D(n,n); | ^~~~~~~ /usr/include/jama/jama_cholesky.h:107:26: error: expected primary-expression before ‘>’ token 107 | L_ = Array2D(n,n); | ^ /usr/include/jama/jama_cholesky.h: At global scope: /usr/include/jama/jama_cholesky.h:146:1: error: ‘Array1D’ does not name a type 146 | Array1D Cholesky::solve(const Array1D &b) | ^~~~~~~ /usr/include/jama/jama_cholesky.h:188:1: error: ‘Array2D’ does not name a type 188 | Array2D Cholesky::solve(const Array2D &B) | ^~~~~~~