Re: [Vala] Vala API causing double definition
- From: Victor Aurélio Santos <victoraur santos gmail com>
- To: Ben <iofelben gmail com>, vala-list gnome org
- Subject: Re: [Vala] Vala API causing double definition
- Date: Fri, 9 Oct 2015 10:46:12 -0300
There's no ajami.h, and just [CCode (cprefix = "Ajami_")] changes
nothing keep getting double definition.
2015-10-08 22:26 GMT-03:00 Ben <iofelben gmail com>:
I think you need [CCode (cprefix = "Ajami_", cheader_filename = "ajami.h")]
on your top namespace
On Thu, Oct 8, 2015 at 7:29 PM, Victor Aurélio Santos
<victoraur santos gmail com> wrote:
Hi, consider the following Vala API file: namespace CAjami { [CCode (cprefix
= "io_", cheader_filename = "io.h")] namespace IO { [CCode (cname =
"io_init")] public void init(); [CCode (cname = "io_cleanup")] public void
cleanup(); } } there's something wrong with that ?, every time I use
CAjami.IO.cleanup(); inside a member the class get duplicated definition, if
i just comment out the line with cleanup(); function it compiles normal. the
vala code: public override void shutdown() { base.shutdown();
CAjami.IO.cleanup(); } and the error: build/src/ajamiapp.c:66:8: error:
redefinition of '_AjamiAjami' struct _AjamiAjami {
build/src/ajamiobjects.h:111:8: note: previous definition is here struct
_AjamiAjami { build/src/ajamiapp.c:71:8: error: redefinition of
'_AjamiAjamiClass' struct _AjamiAjamiClass { build/src/ajamiobjects.h:116:8:
note: previous definition is here struct _AjamiAjamiClass { if I just
comment out the call the function in the shutdown() signal is build normal.
Thanks.
--
Victor Aurélio Santos _______________________________________________
vala-list mailing list vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list
--
Victor Aurélio Santos
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]