Hi,

You are supposed to use the --pkg posix when compiling your program:
  valac -o foobar --pkg posix foobar.vala

The "using" directive in Vala is actually equivalent to the c++'s
"using namespace" and doesn't imply "importing" the package that the
namespace belongs to.

--
Ali

On Sat, May 2, 2009 at 2:51 PM, Andrey -Zox- Kucherov <z...@nsk.raid.ru> wrote:
> Hello,
> Sorry for newbie question... but how can I use Posix namespace in my
> project?
>
> When I type
> ---
> using Posix;
> ---
> The compiler returns an error
> ---
> The namespace name `Posix' could not be found
> ---
> However I was able to find the posix.vapi file
> in /usr/share/vala/vapi/.
> How do I use it?
>
> _______________________________________________
> Vala-list mailing list
> Vala-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/vala-list
>
_______________________________________________
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to