On 27 December 2010 13:49, Geert Jordaens <[email protected]> wrote:
> hello,
>
> any idea how to compile code below?
>
> /* valac --pkg libusb-1.0 TestLibUsb.vala */
> using LibUSB;
> namespace TestLibUSb
> {
>
>  public static class TestLibUSb
>  {
>    static int main (string[] args)
>    {
>      Context       context = null;
>      Device[]      devices = null;
>      Context.init  (out context);
>      context.get_device_list(out devices);
>      return 0;
>    }
>  }
> }

If the following (from the comments) doesn't work, assuming you have
saved the file as TestLibUsb.vala and are in that working directory):

valac --pkg libusb-1.0 TestLibUsb.vala

what output does it give? You may need to install libusb-1.0.0-dev to
get the headers etc.

dru
_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to