Re: [Vala] Problems compiling



OK, disregard that. I misread the gtksourceview-2.0.vala binding file
and was trying to use a function for a created object as if it was a
static one. D'oh!

Still, is it a bug in valac, considering the error message and that it
created invalid C code?

P.S.: forgot to say that I'm loving vala so far. Really nice project. :)

2007/8/16, Francisco Camenforte Torres <fct dev gmail com>:
Hi.

When I try to compile the attached file, using latest SVN, I get the
following error:
------------------------------------------------------------------------------------------------------------------------------------
valac --pkg gtksourceview-2.0 --pkg glib-2.0 --pkg gtk+-2.0 -g -O 2 -X
-Wall --enable-checking --save-temps -o MainWindow SourceFile.vala
MainWindow.vala

** (valac:16484): CRITICAL **: vala_type_reference_get_data_type:
assertion `VALA_IS_TYPE_REFERENCE (self)' failed

** (valac:16484): CRITICAL **: vala_ccode_function_call_add_argument:
assertion `VALA_IS_CCODE_EXPRESSION (expr)' failed
SourceFile.c: En la funciĆ³n 'source_file_constructor':
SourceFile.c:119: error: expected expression before ')' token
error: cc exited with status 256
Compilation failed: 1 error(s), 0 warning(s)
make: *** [MainWindow] Error 1
------------------------------------------------------------------------------------------------------------------------------------

I don't know if I'm doing something wrong (considering I have 0 C# and
GTK+ experience) or there is a bug in Vala. Any tips?

Thanks in advance.

Regards,
Francisco Camenforte Torres.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]