Hi,

sorry it was my fault. I only have problems with:
>>> Field "tv_sec" could not be resolved 
>>> Field "tv_usec" could not be resolved 

the issue is that i can not find gettimeofday.c in ubuntu. I only find 
/usr/share/man/man2/gettimeofday.2.gz

sorry, i am quite new with this. how could i solve this issue?

Thank you so much

El miércoles, 2 de octubre de 2013 17:04:18 UTC+2, Tux Leonard escribió:
>
> 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...@gmail.com <javascript:>>
>
>> On Tue, Oct 1, 2013 at 11:14 PM,  <ignacio...@gmail.com <javascript:>> 
>> 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...@googlegroups.com <javascript:>.
>> 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