[Vala] VAPIGEN error parsing GIR
- From: "Stuart C. Naifeh" <scnaifeh hotmail com>
- To: vala-list gnome org
- Subject: [Vala] VAPIGEN error parsing GIR
- Date: Sun, 5 Feb 2012 15:08:03 -0500
In my C code, I have a typedef that just creates an alias for another,
existing GLib type:
typedef GNode MylibMytype;
This is a placeholder for a type I may expand on in later development, but
for now, GNode does the trick.
This is handled just fine by g-ir-scanner and is converted into the
following in the GIR:
<alias name="Mytype" c:type="MylibMytype">
<type name="GLib.Node" c:type="GNode"/>
</alias>
When I run vapigen on this GIR, I get the following error:
Mylib-0.1.gir:20.37-20.37: error: too few type arguments
<type name="GLib.Node" c:type="GNode"/>
^
Generation failed: 1 error(s), 0 warning(s)
The carrot actual points at the opening quote on "GNode"
I tried google to find a solution. I found one prior query on this list:
here<https://mail.gnome.org/archives/vala-list/2011-September/msg00035.html>,
but no responses.
Can anyone help with this?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]