Re: [Vala] compile problem
- From: Evan Nemerson <evan coeus-group com>
- To: Kos <nikosverschore gmail com>
- Cc: vala-list <vala-list gnome org>
- Subject: Re: [Vala] compile problem
- Date: Mon, 30 Nov 2009 15:10:10 -0800
On Mon, 2009-11-30 at 23:33 +0100, Kos wrote:
Thanks for the explanation.
However my problem isn't solved. I though that was my problem, but it's
definitely not.
I have 2 files an basic_class.vala and an extended_class.vala. I generate c
files with the valac -c command.
After that I want to compile those 2 files separately, so I can link them
later:
gcc -c basic_class.c
gcc -c advanced_class.c
But the second compile instruction gives the following error:
advanced_class.c:74: warning: ‘basicclass_set_some_var’ used but never
defined
What am I doing wrong?
ps. I've reduced my project to only 2 files with only 3 lines, so it's easy
to see the problem. My files are located here:
http://alasal.be/AWN/valaproblem.tar.gz (1kb)
You have an abstract class ("basic_class") with a property ("some_var")
with a private setter. Since the setter is private, you can't override
it in another class. Changing the private setter to a protected setter
should resolve your issue.
That said, valac should really be generating an error rather than
generating invalid C. That is a bug.
-Evan
[
Date Prev][
Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]