Hi, I'm trying to use GLib's markup parser, but I'm getting the following error. Is that a bug or some mistake on my side? jury jury-ubuntu:path$ valac Parser.vala -o Parser path/Parser.vala.c: In function ‘test_parser_constructor’: path/Parser.vala.c:168: error: ‘GMarkupParserStartElementFunc’ undeclared (first use in this function) path/Parser.vala.c:168: error: (Each undeclared identifier is reported only once path/Parser.vala.c:168: error: for each function it appears in.) path/Parser.vala.c:168: error: expected ‘;’ before ‘_tmp1_’ path/Parser.vala.c:169: error: ‘GMarkupParserEndElementFunc’ undeclared (first use in this function) path/Parser.vala.c:169: error: expected ‘;’ before ‘_tmp2_’ path/Parser.vala.c:170: error: ‘GMarkupParserTextFunc’ undeclared (first use in this function) path/Parser.vala.c:170: error: expected ‘;’ before ‘_tmp3_’ path/Parser.vala.c:171: error: ‘GMarkupParserErrorFunc’ undeclared (first use in this function) path/Parser.vala.c:171: error: expected ‘;’ before ‘_tmp4_’ path/Parser.vala.c:174: error: ‘_tmp1_’ undeclared (first use in this function) path/Parser.vala.c:174: error: ‘GMarkupParser’ has no member named ‘start_element_target’ path/Parser.vala.c:175: error: ‘_tmp2_’ undeclared (first use in this function) path/Parser.vala.c:175: error: ‘GMarkupParser’ has no member named ‘end_element_target’ path/Parser.vala.c:176: error: ‘_tmp3_’ undeclared (first use in this function) path/Parser.vala.c:176: error: ‘GMarkupParser’ has no member named ‘text_target’ path/Parser.vala.c:177: error: ‘_tmp4_’ undeclared (first use in this function) path/Parser.vala.c:177: error: ‘GMarkupParser’ has no member named ‘error_target’ error: cc exited with status 256 Compilation failed: 1 error(s), 0 warning(s) Source code is attached...
Attachment:
Parser.vala
Description: Text Data