Re: [Vala] GCC error with markup parser



I updated the example of MarkupParser
with a functional class instead of lambdas

http://live.gnome.org/Vala/MarkupSample

Please take a look.

On Tue, Jan 26, 2010 at 9:23 PM, tecywiz121 <tecywiz121 hotmail com> wrote:
Hi Jiri,

I think it is a bug in glib-2.0.vapi.

Although it looks irrelevant, this patch solves your problem.

- Yu
On Sun, 2009-06-07 at 02:26 +0200, Jiří Zárevúcky wrote:
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...
_______________________________________________
Vala-list mailing list
Vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list


I hate to dig this up again, but was this ever solved?  I am getting the
same error when I try and define a variable of type
"MarkupParserStartElementFunc" or any of the other callback types.

Sam

_______________________________________________
Vala-list mailing list
Vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]