[Vala] Problem creating VAPI file for XcbIcccm
- From: rastersoft <raster rastersoft com>
- To: vala-list gnome org
- Subject: [Vala] Problem creating VAPI file for XcbIcccm
- Date: Thu, 12 Dec 2013 23:20:46 +0100
Hi all:
I'm creating a VAPI file for xcb_icccm and I have a problem:
I defined the function xcb_icccm_get_wm_class_from_reply as:
[CCode (cname = "xcb_icccm_get_wm_class_from_reply")]
public void get_wm_class_from_reply(out WmClassFromReply reply,
GetPropertyReply input);
Unfortunately, when I try to compile a program that uses it, I receive
this error:
CMakeFiles/valawm.dir/window.c.o: In function
`vala_wm_vala_window_map_request':
window.c:(.text+0xbca): undefined reference to
`xcb_icccm_wm_class_from_reply_destroy'
window.c:(.text+0xc6e): undefined reference to
`xcb_icccm_wm_class_from_reply_destroy'
collect2: error: ld returned 1 exit status
It seems that Vala presumes that there must be a "destroy" call that
complements the "get" call. But there is no such call.
How can I fix this?
Thanks.
--
Nos leemos
RASTER (Linux user #228804)
raster rastersoft com http://www.rastersoft.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]