Temporary header file '/tmp/WYipG8KE5s/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/litehtml/attributes.h" #include "/usr/include/litehtml/background.h" #include "/usr/include/litehtml/borders.h" #include "/usr/include/litehtml/box.h" #include "/usr/include/litehtml/codepoint.h" #include "/usr/include/litehtml/context.h" #include "/usr/include/litehtml/css_length.h" #include "/usr/include/litehtml/css_margins.h" #include "/usr/include/litehtml/css_offsets.h" #include "/usr/include/litehtml/css_position.h" #include "/usr/include/litehtml/css_selector.h" #include "/usr/include/litehtml/document.h" #include "/usr/include/litehtml/el_anchor.h" #include "/usr/include/litehtml/el_base.h" #include "/usr/include/litehtml/el_before_after.h" #include "/usr/include/litehtml/el_body.h" #include "/usr/include/litehtml/el_break.h" #include "/usr/include/litehtml/el_cdata.h" #include "/usr/include/litehtml/el_comment.h" #include "/usr/include/litehtml/el_div.h" #include "/usr/include/litehtml/el_font.h" #include "/usr/include/litehtml/el_image.h" #include "/usr/include/litehtml/el_link.h" #include "/usr/include/litehtml/el_para.h" #include "/usr/include/litehtml/el_script.h" #include "/usr/include/litehtml/el_space.h" #include "/usr/include/litehtml/el_style.h" #include "/usr/include/litehtml/el_table.h" #include "/usr/include/litehtml/el_td.h" #include "/usr/include/litehtml/el_text.h" #include "/usr/include/litehtml/el_title.h" #include "/usr/include/litehtml/el_tr.h" #include "/usr/include/litehtml/element.h" #include "/usr/include/litehtml/html.h" #include "/usr/include/litehtml/html_tag.h" #include "/usr/include/litehtml/iterators.h" #include "/usr/include/litehtml/litehtml.h" #include "/usr/include/litehtml/media_query.h" #include "/usr/include/litehtml/num_cvt.h" #include "/usr/include/litehtml/os_types.h" #include "/usr/include/litehtml/style.h" #include "/usr/include/litehtml/stylesheet.h" #include "/usr/include/litehtml/table.h" #include "/usr/include/litehtml/tstring_view.h" #include "/usr/include/litehtml/types.h" #include "/usr/include/litehtml/url.h" #include "/usr/include/litehtml/url_path.h" #include "/usr/include/litehtml/utf8_strings.h" #include "/usr/include/litehtml/web_color.h" // add namespaces namespace litehtml{typedef int tmp_add_type_1;} litehtml::tmp_add_type_1 tmp_add_func_1(){return 0;}; namespace litehtml{namespace num_cvt{typedef int tmp_add_type_2;}} litehtml::num_cvt::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/WYipG8KE5s/dump1.h" In file included from /tmp/WYipG8KE5s/dump1.h:12: /usr/include/litehtml/attributes.h:23:17: error: ‘style_border’ does not name a type; did you mean ‘attr_border’? 23 | style_border border; | ^~~~~~~~~~~~ | attr_border /usr/include/litehtml/attributes.h: In constructor ‘litehtml::attr_border::attr_border()’: /usr/include/litehtml/attributes.h:29:25: error: ‘border’ was not declared in this scope 29 | border = borderNone; | ^~~~~~ /usr/include/litehtml/attributes.h:29:35: error: ‘borderNone’ was not declared in this scope 29 | border = borderNone; | ^~~~~~~~~~ In file included from /usr/include/litehtml/background.h:4, from /tmp/WYipG8KE5s/dump1.h:13: /usr/include/litehtml/types.h: At global scope: /usr/include/litehtml/types.h:14:36: error: ‘tstring’ is not a member of ‘litehtml’ 14 | typedef std::map string_map; | ^~~~~~~ /usr/include/litehtml/types.h:14:55: error: ‘tstring’ is not a member of ‘litehtml’ 14 | typedef std::map string_map; | ^~~~~~~ /usr/include/litehtml/types.h:14:62: error: template argument 1 is invalid 14 | typedef std::map string_map; | ^ /usr/include/litehtml/types.h:14:62: error: template argument 2 is invalid /usr/include/litehtml/types.h:14:62: error: template argument 3 is invalid /usr/include/litehtml/types.h:14:62: error: template argument 4 is invalid /usr/include/litehtml/types.h:17:39: error: ‘tstring’ is not a member of ‘litehtml’ 17 | typedef std::vector string_vector; | ^~~~~~~ /usr/include/litehtml/types.h:17:46: error: template argument 1 is invalid 17 | typedef std::vector string_vector; | ^ /usr/include/litehtml/types.h:17:46: error: template argument 2 is invalid /usr/include/litehtml/types.h:170:17: error: ‘uint_ptr’ does not name a type; did you mean ‘wint_t’? 170 | uint_ptr font; | ^~~~~~~~ | wint_t /usr/include/litehtml/types.h:174:26: error: ‘tstring’ was not declared in this scope; did you mean ‘stdin’? 174 | typedef std::map fonts_map; | ^~~~~~~ | stdin /usr/include/litehtml/types.h:174:44: error: template argument 1 is invalid 174 | typedef std::map fonts_map; | ^ /usr/include/litehtml/types.h:174:44: error: template argument 3 is invalid /usr/include/litehtml/types.h:174:44: error: template argument 4 is invalid /usr/include/litehtml/types.h:747:25: error: ‘tchar_t’ in namespace ‘litehtml’ does not name a type 747 | const litehtml::tchar_t* const void_elements = _t("area;base;br;col;command;embed;hr;img;input;keygen;link;meta;param;source;track;wbr"); | ^~~~~~~ In file included from /usr/include/litehtml/background.h:6: /usr/include/litehtml/css_length.h:30:50: error: ‘tstring’ does not name a type; did you mean ‘stdin’? 30 | void fromString(const tstring& str, const tstring& predefs = _t(""), int defValue = 0); | ^~~~~~~ | stdin /usr/include/litehtml/css_length.h:30:70: error: ‘tstring’ does not name a type; did you mean ‘stdin’? 30 | void fromString(const tstring& str, const tstring& predefs = _t(""), int defValue = 0); | ^~~~~~~ | stdin /usr/include/litehtml/css_length.h:30:89: error: ‘_t’ was not declared in this scope 30 | void fromString(const tstring& str, const tstring& predefs = _t(""), int defValue = 0); | ^~ /usr/include/litehtml/css_length.h:30:89: note: the macro ‘_t’ had not yet been defined In file included from /usr/include/litehtml/codepoint.h:35, from /tmp/WYipG8KE5s/dump1.h:16: /usr/include/litehtml/os_types.h:68: note: it was later defined here 68 | #define _t(quote) quote | In file included from /usr/include/litehtml/background.h:8: /usr/include/litehtml/web_color.h:8:23: error: ‘tchar_t’ does not name a type; did you mean ‘wchar_t’? 8 | const tchar_t* name; | ^~~~~~~ | wchar_t /usr/include/litehtml/web_color.h:9:23: error: ‘tchar_t’ does not name a type; did you mean ‘wchar_t’? 9 | const tchar_t* rgb; | ^~~~~~~ | wchar_t /usr/include/litehtml/web_color.h:55:55: error: ‘tchar_t’ does not name a type; did you mean ‘wchar_t’? 55 | static web_color from_string(const tchar_t* str, litehtml::document_container* callback); | ^~~~~~~ | wchar_t /usr/include/litehtml/web_color.h:56:34: error: ‘tstring’ in namespace ‘litehtml’ does not name a type 56 | static litehtml::tstring resolve_name(const tchar_t* name, litehtml::document_container* callback); | ^~~~~~~ /usr/include/litehtml/web_color.h:57:52: error: ‘tchar_t’ does not name a type; did you mean ‘wchar_t’? 57 | static bool is_color(const tchar_t* str); | ^~~~~~~ | wchar_t /usr/include/litehtml/background.h:16:17: error: ‘tstring’ does not name a type; did you mean ‘stdin’? 16 | tstring m_image; | ^~~~~~~ | stdin /usr/include/litehtml/background.h:17:17: error: ‘tstring’ does not name a type; did you mean ‘stdin’? 17 | tstring m_baseurl; | ^~~~~~~ | stdin /usr/include/litehtml/background.h:37:17: error: ‘tstring’ does not name a type; did you mean ‘stdin’? 37 | tstring image; | ^~~~~~~ | stdin /usr/include/litehtml/background.h:38:17: error: ‘tstring’ does not name a type; did you mean ‘stdin’? 38 | tstring baseurl; | ^~~~~~~ | stdin In file included from /tmp/WYipG8KE5s/dump1.h:15: /usr/include/litehtml/box.h:40:84: error: invalid use of incomplete type ‘class litehtml::element’ 40 | virtual void add_element(const element::ptr &el) = 0; | ^~~ /usr/include/litehtml/types.h:12:15: note: forward declaration of ‘class litehtml::element’ 12 | class element; | ^~~~~~~ /usr/include/litehtml/box.h:41:81: error: invalid use of incomplete type ‘class litehtml::element’ 41 | virtual bool can_hold(const element::ptr &el, white_space ws) const = 0; | ^~~ /usr/include/litehtml/types.h:12:15: note: forward declaration of ‘class litehtml::element’ 12 | class element; | ^~~~~~~ /usr/include/litehtml/box.h:56:26: error: invalid use of incomplete type ‘class litehtml::element’ 56 | element::ptr m_element; | ^~~ /usr/include/litehtml/types.h:12:15: note: forward declaration of ‘class litehtml::element’ 12 | class element; | ^~~~~~~ /usr/include/litehtml/box.h:66:76: error: invalid use of incomplete type ‘class litehtml::element’ 66 | void add_element(const element::ptr &el) override; | ^~~ /usr/include/litehtml/types.h:12:15: note: forward declaration of ‘class litehtml::element’ 12 | class element; | ^~~~~~~ /usr/include/litehtml/box.h:67:73: error: invalid use of incomplete type ‘class litehtml::element’ 67 | bool can_hold(const element::ptr &el, white_space ws) const override; | ^~~ /usr/include/litehtml/types.h:12:15: note: forward declaration of ‘class litehtml::element’ 12 | class element; | ^~~~~~~ /usr/include/litehtml/box.h: In constructor ‘litehtml::block_box::block_box(int, int, int)’: /usr/include/litehtml/box.h:60:25: error: ‘m_element’ was not declared in this scope; did you mean ‘element’? 60 | m_element = nullptr; | ^~~~~~~~~ | element /usr/include/litehtml/box.h: At global scope: /usr/include/litehtml/box.h:103:76: error: invalid use of incomplete type ‘class litehtml::element’ 103 | void add_element(const element::ptr &el) override; | ^~~ /usr/include/litehtml/types.h:12:15: note: forward declaration of ‘class litehtml::element’ 12 | class element; | ^~~~~~~ /usr/include/litehtml/box.h:104:73: error: invalid use of incomplete type ‘class litehtml::element’ 104 | bool can_hold(const element::ptr &el, white_space ws) const override; | ^~~ /usr/include/litehtml/types.h:12:15: note: forward declaration of ‘class litehtml::element’ 12 | class element; | ^~~~~~~ In file included from /tmp/WYipG8KE5s/dump1.h:23: /usr/include/litehtml/document.h:53:26: error: invalid use of incomplete type ‘class litehtml::element’ 53 | element::ptr m_over_element; | ^~~ /usr/include/litehtml/types.h:12:15: note: forward declaration of ‘class litehtml::element’ 12 | class element; | ^~~~~~~ /usr/include/litehtml/document.h:76:36: error: invalid use of incomplete type ‘class litehtml::element’ 76 | litehtml::element::ptr create_element(const tchar_t* tag_name, const string_map& attributes); | ^~~ /usr/include/litehtml/types.h:12:15: note: forward declaration of ‘class litehtml::element’ 12 | class element; | ^~~~~~~ /usr/include/litehtml/document.h:77:26: error: invalid use of incomplete type ‘class litehtml::element’ 77 | element::ptr root(); | ^~~ /usr/include/litehtml/types.h:12:15: note: forward declaration of ‘class litehtml::element’ 12 | class element; | ^~~~~~~ /usr/include/litehtml/document.h:84:100: error: invalid use of incomplete type ‘class litehtml::element’ 84 | void add_tabular(const element::ptr& el); | ^~~ /usr/include/litehtml/types.h:12:15: note: forward declaration of ‘class litehtml::element’ 12 | class element; | ^~~~~~~ /usr/include/litehtml/document.h:85:26: error: invalid use of incomplete type ‘class litehtml::element’ 85 | element::const_ptr get_over_element() const { return m_over_element; } | ^~~~~~~~~ /usr/include/litehtml/types.h:12:15: note: forward declaration of ‘class litehtml::element’ 12 | class element; | ^~~~~~~ /usr/include/litehtml/document.h:99:41: error: ‘litehtml::element::ptr’ has not been declared 99 | void fix_table_children(element::ptr& el_ptr, style_display disp, const tchar_t* disp_str); | ^~~~~~~ /usr/include/litehtml/document.h:100:39: error: ‘litehtml::element::ptr’ has not been declared 100 | void fix_table_parent(element::ptr& el_ptr, style_display disp, const tchar_t* disp_str); | ^~~~~~~ /usr/include/litehtml/document.h:103:25: error: invalid use of incomplete type ‘class litehtml::element’ 103 | inline element::ptr document::root() | ^~~ /usr/include/litehtml/types.h:12:15: note: forward declaration of ‘class litehtml::element’ 12 | class element; | ^~~~~~~ /usr/include/litehtml/document.h:107:58: error: invalid use of incomplete type ‘class litehtml::element’ 107 | inline void document::add_tabular(const element::ptr& el) | ^~~ /usr/include/litehtml/types.h:12:15: note: forward declaration of ‘class litehtml::element’ 12 | class element; | ^~~~~~~ /usr/include/litehtml/document.h: In member function ‘void litehtml::document::add_tabular(const int&)’: /usr/include/litehtml/document.h:109:45: error: no matching function for call to ‘std::vector >::push_back(const int&)’ 109 | m_tabular_elements.push_back(el); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from /usr/include/c++/12/vector:64, from /usr/include/litehtml/types.h:7: /usr/include/c++/12/bits/stl_vector.h:1276:7: note: candidate: ‘void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::shared_ptr; _Alloc = std::allocator >; value_type = std::shared_ptr]’ 1276 | push_back(const value_type& __x) | ^~~~~~~~~ /usr/include/c++/12/bits/stl_vector.h:1276:35: note: no known conversion for argument 1 from ‘const int’ to ‘const std::vector >::value_type&’ {aka ‘const std::shared_ptr&’} 1276 | push_back(const value_type& __x) | ~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/12/bits/stl_vector.h:1293:7: note: candidate: ‘void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::shared_ptr; _Alloc = std::allocator >; value_type = std::shared_ptr]’ 1293 | push_back(value_type&& __x) | ^~~~~~~~~ /usr/include/c++/12/bits/stl_vector.h:1293:30: note: no known conversion for argument 1 from ‘const int’ to ‘std::vector >::value_type&&’ {aka ‘std::shared_ptr&&’} 1293 | push_back(value_type&& __x) | ~~~~~~~~~~~~~^~~