Temporary header file '/tmp/1qXlzumWgG/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/simstring/cdbpp.h" #include "/usr/include/simstring/measure.h" #include "/usr/include/simstring/memory_mapped_file.h" #include "/usr/include/simstring/memory_mapped_file_posix.h" #include "/usr/include/simstring/ngram.h" #include "/usr/include/simstring/simstring.h" // add namespaces namespace cdbpp{typedef int tmp_add_type_1;} cdbpp::tmp_add_type_1 tmp_add_func_1(){return 0;}; namespace simstring{typedef int tmp_add_type_2;} simstring::tmp_add_type_2 tmp_add_func_2(){return 0;}; namespace simstring{namespace measure{typedef int tmp_add_type_3;}} simstring::measure::tmp_add_type_3 tmp_add_func_3(){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; f_owner_ex* tmp_add_class_3; file_handle* tmp_add_class_4; flock64* tmp_add_class_5; iovec* tmp_add_class_6; memory_mapped_file_base* tmp_add_class_7; memory_mapped_file_posix* tmp_add_class_8; statx_timestamp* tmp_add_class_9; The GCC parameters: gcc -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w "/tmp/1qXlzumWgG/dump1.h" In file included from /tmp/1qXlzumWgG/dump1.h:13: /usr/include/simstring/measure.h: In static member function ‘static int simstring::measure::dice::min_size(int, double)’: /usr/include/simstring/measure.h:69:26: error: ‘ceil’ is not a member of ‘std’ 69 | return (int)std::ceil(alpha * qsize / (2. - qsize)); | ^~~~ /usr/include/simstring/measure.h: In static member function ‘static int simstring::measure::dice::max_size(int, double)’: /usr/include/simstring/measure.h:74:26: error: ‘floor’ is not a member of ‘std’ 74 | return (int)std::floor((2. - alpha) * qsize / alpha); | ^~~~~ /usr/include/simstring/measure.h: In static member function ‘static int simstring::measure::dice::min_match(int, int, double)’: /usr/include/simstring/measure.h:79:26: error: ‘ceil’ is not a member of ‘std’ 79 | return (int)std::ceil(0.5 * alpha * (qsize + rsize)); | ^~~~ /usr/include/simstring/measure.h: In static member function ‘static int simstring::measure::cosine::min_size(int, double)’: /usr/include/simstring/measure.h:90:26: error: ‘ceil’ is not a member of ‘std’ 90 | return (int)std::ceil(alpha * alpha * qsize); | ^~~~ /usr/include/simstring/measure.h: In static member function ‘static int simstring::measure::cosine::max_size(int, double)’: /usr/include/simstring/measure.h:95:26: error: ‘floor’ is not a member of ‘std’ 95 | return (int)std::floor(qsize / (alpha * alpha)); | ^~~~~ /usr/include/simstring/measure.h: In static member function ‘static int simstring::measure::cosine::min_match(int, int, double)’: /usr/include/simstring/measure.h:100:26: error: ‘ceil’ is not a member of ‘std’ 100 | return (int)std::ceil(alpha * std::sqrt((double)qsize * rsize)); | ^~~~ /usr/include/simstring/measure.h:100:44: error: ‘sqrt’ is not a member of ‘std’; did you mean ‘sort’? 100 | return (int)std::ceil(alpha * std::sqrt((double)qsize * rsize)); | ^~~~ | sort /usr/include/simstring/measure.h: In static member function ‘static int simstring::measure::jaccard::min_size(int, double)’: /usr/include/simstring/measure.h:111:26: error: ‘ceil’ is not a member of ‘std’ 111 | return (int)std::ceil(alpha * qsize); | ^~~~ /usr/include/simstring/measure.h: In static member function ‘static int simstring::measure::jaccard::max_size(int, double)’: /usr/include/simstring/measure.h:116:26: error: ‘floor’ is not a member of ‘std’ 116 | return (int)std::floor(qsize / alpha); | ^~~~~ /usr/include/simstring/measure.h: In static member function ‘static int simstring::measure::jaccard::min_match(int, int, double)’: /usr/include/simstring/measure.h:121:26: error: ‘ceil’ is not a member of ‘std’ 121 | return (int)std::ceil(alpha * (qsize + rsize) / (1 + alpha)); | ^~~~ /usr/include/simstring/measure.h: In static member function ‘static int simstring::measure::overlap::min_match(int, int, double)’: /usr/include/simstring/measure.h:142:26: error: ‘ceil’ is not a member of ‘std’ 142 | return (int)std::ceil(alpha * std::min(qsize, rsize)); | ^~~~ In file included from /usr/include/simstring/memory_mapped_file.h:62, from /tmp/1qXlzumWgG/dump1.h:14: /usr/include/simstring/memory_mapped_file_posix.h: In member function ‘void memory_mapped_file_posix::open(const std::string&, std::ios_base::openmode)’: /usr/include/simstring/memory_mapped_file_posix.h:91:19: error: ‘::close’ has not been declared; did you mean ‘pclose’? 91 | ::close(m_fd); | ^~~~~ | pclose /usr/include/simstring/memory_mapped_file_posix.h: In member function ‘void memory_mapped_file_posix::close()’: /usr/include/simstring/memory_mapped_file_posix.h:106:15: error: ‘::close’ has not been declared; did you mean ‘pclose’? 106 | ::close(m_fd); | ^~~~~ | pclose /usr/include/simstring/memory_mapped_file_posix.h: In member function ‘bool memory_mapped_file_posix::resize(size_type)’: /usr/include/simstring/memory_mapped_file_posix.h:126:19: error: ‘::lseek’ has not been declared; did you mean ‘fseek’? 126 | if (::lseek(m_size, size, SEEK_SET) >= 0) { | ^~~~~ | fseek /usr/include/simstring/memory_mapped_file_posix.h:128:21: error: ‘read’ was not declared in this scope; did you mean ‘fread’? 128 | if (read(m_fd, &c, sizeof(char)) == -1) { | ^~~~ | fread /usr/include/simstring/memory_mapped_file_posix.h:131:21: error: ‘write’ was not declared in this scope; did you mean ‘fwrite’? 131 | if (write(m_fd, &c, sizeof(char)) == -1) { | ^~~~~ | fwrite