Re: [Vala] GCC error with markup parser
- From: tecywiz121 <tecywiz121 hotmail com>
- To: vala-list gnome org
- Subject: Re: [Vala] GCC error with markup parser
- Date: Tue, 26 Jan 2010 22:23:15 -0500
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]