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.

Reply via email to