Hi,
i'm trying mysql bindings now, and it doesn't work for me,
root CentOS-54-64-minimal ~/develop/vala # valac --pkg mysql mysql2.vala && ./mysql2
mysql2.vala:10.19-10.33: error: `Mysql.Database' does not have a default constructor
Database mysql = new Database ();
^^^^^^^^^^^^^^^
Compilation failed: 1 error(s), 0 warning(s)
i've read maillist and it seem like a common error on later versons of
vala? :(
I'm not so sure why this worked in the first place. You could try the attached patch which makes init a static factory method: var mysql = Database.init();
Attachment:
mysql_vapi.patch
Description: Text Data