AFAIK you do not have to define the constructor return value type. It seems 
that construct keyword generates construction function return type different 
than void, so there is type conflict. I suggest to remove void before 
construct. 

--
Alexey Savartsov 

On 04.01.2011, at 18:04, Pavol Klačanský <[email protected]> wrote:

> class xml_parser {
> 
>    private database db;
>    
>    public void construct (database db) {
>        this.db = db;
>    }
> 
> /home/pk/Programming/speedyrss/src/xml_parser.vala.c:155:13: error:
> conflicting types for ‘xml_parser_construct’
> /home/pk/Programming/speedyrss/src/xml_parser.vala.c:131:6: note:
> previous declaration of ‘xml_parser_construct’ was here
> /home/pk/Programming/speedyrss/src/xml_parser.vala.c:323:13: error:
> conflicting types for ‘xml_parser_construct’
> /home/pk/Programming/speedyrss/src/xml_parser.vala.c:167:6: note:
> previous definition of ‘xml_parser_construct’ was here
> error: cc exited with status 256
> Compilation failed: 1 error(s), 10 warning(s)
> 
> _______________________________________________
> vala-list mailing list
> [email protected]
> http://mail.gnome.org/mailman/listinfo/vala-list
_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to