The code works fine. Even with Eclipse.

How is it posible that you get errors about cout, endl and std. Those
commands are not in the posted code.


2013/10/2 Dieter Wirz <didi.w...@gmail.com>

> On Tue, Oct 1, 2013 at 11:14 PM,  <ignacio.mata...@gmail.com> wrote:
> >>> hi, Sorry for disturbing you. How can I compile  "gcc -Wall
> >>> gettimeofday.c -o gettimeofday " in eclipse under ubuntu?
> I don't know Eclipse too much, I compile such programs in terminal:
> Open Terminal
> cd to the folder where gettimeofday.c is
> type in:
> gcc -Wall gettimeofday.c -o gettimeofday
> run the Porgram with
> ./gettimeofday
>
> >>> I got some errors:
> >>> Field "tv_sec" could not be resolved
> >>> Field "tv_usec" could not be resolved
>
> Maybe you have to tell Eclipse:
> - it is C (not C++)
> - from where to include <sys/time.h>
>
> HTH
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beagleboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to