On Sat, 2010-07-24 at 21:26 +0200, Borja Varela Brea wrote:
...
> I compile the vala file with
> this comand with the console in the directory proyects:
>
> C:/vala-0.9.3/Proyects>valac --vapidir=./Vapis --pkg=Operations
> test.vala
>
> but the compilator answer the next:
>
> test.vala.c<.text+0x16>: undefined reference to sum
You need to make sure the compiler knows about the C file as well. Try
this:
valac --vapidir=./Vapis --pkg Operations test.vala Operations.c
Or, if you prefer, you can just pass -C to valac and compile with your C
compiler manually.
>
> but if i
> generate only the c file, it is ok:
> ----------------
> /* test.c
> generated by valac, the Vala compiler
> * generated from p.vala, do
> not modify */
>
>
> #include <glib.h>
> #include
> <glib-object.h>
> #include
> <C:/vala-0.9.3/Proyects/CFunctions/Operations.h>
>
>
>
>
> void
> _vala_main (void);
>
>
>
> void _vala_main (void) {
> sum
> (2, 4);
> }
>
>
> int main (int argc, char ** argv) {
>
> g_type_init ();
> _vala_main ();
> return 0;
> }
> ----------------
>
> ¿What
> I do bad? Thanks
> _________________________________________________________________
> No has visto nada como el nuevo Messenger, ¡te sorprenderá!
> http://explore.live.com/windows-live-messenger
> _______________________________________________ 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